Page MenuHomeDevCentral

D1359.diff
No OneTemporary

D1359.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
Sun, Nov 24, 16:40 (45 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258719
Default Alt Text
D1359.diff (1 KB)

Event Timeline