letsencrypt-tools/etc/cron.d/certbot
Matthew Saunders Brown 9a59bebe5a fix cerbot typo
2024-06-15 13:50:02 -07:00

11 lines
497 B
Plaintext

# /etc/cron.d/cert: crontab entries for the certbot (letsencrypt)
SHELL=/bin/sh
PATH=/opt/certbot/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Renew certs twice daily
0 0,12 * * * root test -x /opt/certbot/bin/certbot && test -L /usr/bin/certbot && perl -e 'sleep int(rand(43200))' && certbot -q renew --no-random-sleep-on-renew
# Upgrade certbot monthly
45 0 1 * * root /opt/certbot/bin/pip install --upgrade certbot certbot-apache certbot-dns-powerdns pyyaml==5.3.1