It seems, that my renew hook (added to the debian cron script) doesn’t work.
test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot renew --post-hook /etc/letsencrypt/posthook.sh --renew-hook /etc/letsencrypt/renewhook.sh
And the Script:
#!/bin/bash echo renewed certificate in $RENEWED_LINEAGE. echo Domains: $RENEWED_DOMAINS exit 0
I get the usual certbot output, but the output from the script is not included in the mail. I would have expected it to be in the mail after the certbot console output.
The script is executable and works:
$ /etc/letsencrypt/renewhook.sh renewed certificate in . Domains: