瀏覽代碼

Changed LE-renew cron frequency

Tomas Bedrich 8 年之前
父節點
當前提交
9786230808

roles/common/files/etc_cron-monthly_letsencrypt-renew → roles/common/files/etc_cron-daily_letsencrypt-renew 查看文件

@@ -1,7 +1,7 @@
1 1
 #!/bin/bash
2 2
 set -o errexit
3 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 6
 /root/letsencrypt/letsencrypt-auto renew --pre-hook="service apache2 stop" --post-hook="service apache2 start" \
7 7
     -c /etc/letsencrypt/cli.conf

+ 2
- 2
roles/common/tasks/letsencrypt.yml 查看文件

@@ -24,8 +24,8 @@
24 24
 
25 25
 - name: Install crontab entry for LetsEncrypt
26 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 29
     owner=root
30 30
     group=root
31 31
     mode=0755

+ 1
- 1
roles/ircbouncer/templates/etc_letsencrypt_postrenew_znc.sh.j2 查看文件

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

Loading…
取消
儲存