Hi Guys,
Currently using Certbot from the Debian package on Debian 8. It all works fine except the renew process. The renew process is triggered from cron, and I have a renew hook. The renew process works fine, but the hook isn’t getting fired. If I run the hook manually it works. Here is my Cron file:
/etc/cron.d/certbot: crontab entries for the certbot package
Upstream recommends attempting renewal twice a day
Eventually, this will be an opportunity to validate certificates
haven’t been revoked, etc. Renewal will only occur if expiration
is within 30 days.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
0 /12 * * * root test -x /usr/bin/certbot -a ! -d /run/systemd/system && perl -e ‘sleep int(rand(3600))’ && certbot -q renew --renew-hook "cp /etc/letsencrypt/live/server.domain.com/{fullchain.pem,privkey.pem} /etc/exim4/ && chown root:Debian-exim /etc/exim4/.pem && chmod 640 /etc/exim4/*.pem && service exim4 reload && service nginx reload"
Thanks,
Andrew.