AnswerBun.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!

Related Questions

Having trouble transferring file to a new folder

1  Asked on December 6, 2021 by eric-biggin-freeman

     

Weird browser colors in Ubuntu 18.04

4  Asked on December 6, 2021 by ccristian

         

Boot time is very slow

1  Asked on December 6, 2021 by likhit-daggubati

       

Viewing the contents of a flatpak

1  Asked on December 6, 2021 by dan-scally

     

How can I extract a page range / a part of a PDF?

21  Asked on December 5, 2021 by user72469

   

Failed to get canonical path of /cow

6  Asked on December 5, 2021 by ulkancst

       

vsftpd service will not start for 14.04

1  Asked on December 5, 2021 by shannon-mount

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP