Renew-Hook doesn't work


#1

It seems, that my renew hook (added to the debian cron script) doesn’t work.

Commandline:

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:

#2

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