Closed alfredodeza closed 7 years ago
Turns out the post-hook wasn't getting called because the actual cronjob never renewed the cert successfully. /etc/cron.d/certbot
was hijacking the renewal and isn't configured to run the post-hook we have specified.
Using systemctl for this is better anyway so still merging.
I believe this might have to do with nginx not being reloaded by the certbot in cron, where
service
lives in /usr/sbin/ and might not be available in$PATH
when running in cron. Regardless,service
is not correct anymore (even though it works)