TransWikia.com

How to run hooks with LetsEncrypt certbot after auto renewal?

Ask Ubuntu Asked by Jette on December 11, 2020

When installing certbot on Ubuntu (20.04) it will automatically run certbot renew via cron or systemd.

If I place hook scripts in /etc/letsencrypt/renewal-hooks/(deploy|post|pre) will certbot also run these, or do I need to add ‘–deploy-hook’ to the certbot command in cron|systemd?

One Answer

Cerbot will run scripts from renewal-hooks. --deploy-hook is not required.

Don't forget to set chmod +x for scripts.

If you run

sudo certbot renew --dry-run

certbot executes the hooks too.

Answered by Qwertovsky on December 11, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP