Page MenuHomeDevCentral

D1359.id3477.diff
No OneTemporary

D1359.id3477.diff

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

Mime Type
text/plain
Expires
Wed, Nov 6, 11:30 (21 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2231599
Default Alt Text
D1359.id3477.diff (1 KB)

Event Timeline