Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769723
D1359.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D1359.diff
View Options
diff --git a/roles/shellserver/odderon/config.sls b/roles/shellserver/odderon/config.sls
--- a/roles/shellserver/odderon/config.sls
+++ b/roles/shellserver/odderon/config.sls
@@ -12,7 +12,9 @@
# -------------------------------------------------------------
odderon_fix_permissions_and_ownership:
- cmd.run:
- - names:
- - chown odderon:nasqueron-irc /opt/odderon/var/darkbot/userlist.db
- - chmod 640 /opt/odderon/var/darkbot/userlist.db
+ file.managed:
+ - name: /opt/odderon/var/darkbot/userlist.db
+ - user: odderon
+ - group: nasqueron-irc
+ - chmod: 640
+ - replace: False
diff --git a/roles/webserver-core/letsencrypt/certificates.sls b/roles/webserver-core/letsencrypt/certificates.sls
--- a/roles/webserver-core/letsencrypt/certificates.sls
+++ b/roles/webserver-core/letsencrypt/certificates.sls
@@ -16,5 +16,5 @@
certificate_{{ domain }}:
cmd.run:
- name: certbot certonly -d {{ domain }}
- - unless: test -f {{ dirs.etc }}/letsencrypt/live/{{ domain }}/fullchain.pem
+ - creates: {{ dirs.etc }}/letsencrypt/live/{{ domain }}/fullchain.pem
{% endfor %}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 16:40 (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258719
Default Alt Text
D1359.diff (1 KB)
Attached To
Mode
D1359: Improve cmd.run usage
Attached
Detach File
Event Timeline
Log In to Comment