Browse Source

Changed LE-renew cron frequency

Tomas Bedrich 8 years ago
parent
commit
9786230808

roles/common/files/etc_cron-monthly_letsencrypt-renew → roles/common/files/etc_cron-daily_letsencrypt-renew View File

1
 #!/bin/bash
1
 #!/bin/bash
2
 set -o errexit
2
 set -o errexit
3
 # Renew all live certificates with LetsEncrypt.  This needs to run at least
3
 # Renew all live certificates with LetsEncrypt.  This needs to run at least
4
-# once every three months, but recommanded frequency is once a day.
4
+# once every three months, but recommended frequency is once a day.
5
 
5
 
6
 /root/letsencrypt/letsencrypt-auto renew --pre-hook="service apache2 stop" --post-hook="service apache2 start" \
6
 /root/letsencrypt/letsencrypt-auto renew --pre-hook="service apache2 stop" --post-hook="service apache2 start" \
7
     -c /etc/letsencrypt/cli.conf
7
     -c /etc/letsencrypt/cli.conf

+ 2
- 2
roles/common/tasks/letsencrypt.yml View File

24
 
24
 
25
 - name: Install crontab entry for LetsEncrypt
25
 - name: Install crontab entry for LetsEncrypt
26
   copy:
26
   copy:
27
-    src=etc_cron-monthly_letsencrypt-renew
28
-    dest=/etc/cron.monthly/letsencrypt-renew
27
+    src=etc_cron-daily_letsencrypt-renew
28
+    dest=/etc/cron.daily/letsencrypt-renew
29
     owner=root
29
     owner=root
30
     group=root
30
     group=root
31
     mode=0755
31
     mode=0755

+ 1
- 1
roles/ircbouncer/templates/etc_letsencrypt_postrenew_znc.sh.j2 View File

1
 #!/bin/bash
1
 #!/bin/bash
2
-# Executed by /etc/cron.monthly/letsencrypt-renew
2
+# Executed by /etc/cron.daily/letsencrypt-renew
3
 
3
 
4
 cat /etc/letsencrypt/live/{{ domain }}/{privkey,fullchain}.pem > /usr/lib/znc/znc.pem
4
 cat /etc/letsencrypt/live/{{ domain }}/{privkey,fullchain}.pem > /usr/lib/znc/znc.pem
5
 chown znc.znc /usr/lib/znc/znc.pem
5
 chown znc.znc /usr/lib/znc/znc.pem

Loading…
Cancel
Save