diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-10-10 18:05:51 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-10-10 18:05:51 +0200 |
commit | a2411e298359682b2210798756b6dd62829e39d6 (patch) | |
tree | 472fdb97c489c84f6f4ad72cd2b8e36e35025b23 /roles/x509/ownca/cert/prepare/templates | |
parent | nginx/vhost: make generic template more generic (diff) |
x509/*: fix update/reload scripts
Diffstat (limited to 'roles/x509/ownca/cert/prepare/templates')
-rw-r--r-- | roles/x509/ownca/cert/prepare/templates/updated.sh.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/x509/ownca/cert/prepare/templates/updated.sh.j2 b/roles/x509/ownca/cert/prepare/templates/updated.sh.j2 index 15f68cd9..c1e57fe9 100644 --- a/roles/x509/ownca/cert/prepare/templates/updated.sh.j2 +++ b/roles/x509/ownca/cert/prepare/templates/updated.sh.j2 @@ -5,8 +5,8 @@ install{% if 'mode' in file %} -m {{ file.mode }}{% endif %}{% if 'owner' in file %} -o {{ file.owner }}{% endif %}{% if 'owner' in file %} -g {{ file.group }}{% endif %} /dev/null "{{ file.dest }}.new" {% for src in file.src %} cat "{{ lookup('vars', 'x509_certificate_path_' + src) }}" >> "{{ file.dest }}.new" -mv "{{ file.dest }}.new" "{{ file.dest }}" {% endfor %} +mv "{{ file.dest }}.new" "{{ file.dest }}" {% endfor %} {% endif %} {% if 'reload' in x509_certificate_renewal %} |