I’m trying to setup a custom deploy hook in one of my renewal configuration files, like this:
deploy_hook = /some/script.sh
However, as soon as I run
certbot renew --cert-name <cert_name> --force-renewal to test it, the configuration file seems to be overwritten and the configuration line is lost. The certificate is renewed, but the deploy hook isn’t run.
How do I specify a per-certificate deploy hook in my configuration?
This is with certbot 0.31.0 (from Debian package 0.31.0-1 on Debian 10.3).