Renew-Hook doesn't work

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/ --renew-hook /etc/letsencrypt/

And the Script:

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/
renewed certificate in .

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.