0908
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
# Let's Encrypt 自动续签 cron 配置
|
||||
# 每天凌晨 2 点执行续签检查
|
||||
# 编辑:crontab -e
|
||||
#
|
||||
# 注意:cron 的 PATH 极简,务必用 bash <绝对路径> 调用(脚本内部也会自行补齐 PATH)
|
||||
|
||||
# 编辑 crontab: crontab -e
|
||||
# 添加以下行:
|
||||
# 续签:LE 官方建议一天两次
|
||||
0 2,15 * * * bash /home/awei/workspace/common-server-public/certbot/renew-cert.sh >> /var/log/certbot-renew.log 2>&1
|
||||
|
||||
0 2 * * * cd /home/awei/workspace/common-server-public/certbot && ./renew-cert.sh >> /var/log/certbot-renew.log 2>&1
|
||||
# 有效期检查:低于 20 天时脚本以非 0 退出,可配合告警
|
||||
0 8 * * * bash /home/awei/workspace/common-server-public/certbot/check-cert.sh >> /var/log/certbot-check.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user