[meta] fix Lets Encrypt cert renewing cronjob

pull/37/head
Alpha Chen 3 years ago
parent f2f6b04e96
commit 7fafb528ef

@ -1,4 +1,2 @@
#!/bin/sh
{% for tld in lets_encrypt_tlds %}
certbot renew --cert-name {{ tld }} --webroot -w /var/lib/letsencrypt/ --post-hook "systemctl reload nginx"
{% endfor %}
certbot renew -w /var/lib/letsencrypt/ --pre-hook "systemctl stop nginx" --post-hook "systemctl start nginx"

Loading…
Cancel
Save