Files
common-server-public/certbot/crontab.example
张威33321 fb87be680d 0908
2026-09-08 20:36:17 +08:00

11 lines
525 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Let's Encrypt 自动续签 cron 配置
# 编辑crontab -e
#
# 注意cron 的 PATH 极简,务必用 bash <绝对路径> 调用(脚本内部也会自行补齐 PATH
# 续签LE 官方建议一天两次
0 2,15 * * * bash /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