Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot renew --dry-run does not execute renewal-hooks/deploy/ scripts #9916

Open
wayneworkman opened this issue Mar 23, 2024 · 1 comment
Open

Comments

@wayneworkman
Copy link

wayneworkman commented Mar 23, 2024

My operating system is (include version):

Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-18-cloud-amd64
certbot 2.1.0

I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc):

apt-get -y install certbot python3-certbot-nginx

I ran this command and it produced this output:

certbot renew  --dry-run --no-random-sleep-on-renew

Simulation successfully ran, but the script within /etc/letsencrypt/renewal-hooks/deploy/ directory did not run. I know they did not run because my system did not reboot (ssh connection was not terminated like a reboot would cause).

root@mail:~# ls -laht /etc/letsencrypt/renewal-hooks/deploy/reboot.sh
-rwxr-xr-x 1 root root 28 Mar 23 16:39 /etc/letsencrypt/renewal-hooks/deploy/reboot.sh
root@mail:~# 
root@mail:~# cat /etc/letsencrypt/renewal-hooks/deploy/reboot.sh
#!/bin/bash

/sbin/reboot

Certbot's behavior differed from what I expected because:

An actual renewal runs the scripts within the /etc/letsencrypt/renewal-hooks/deploy/ but the --dry-run command that I needed to ensure things were completely working did not run the scripts. I need the --dry-run to be a full dry run for testing purposes.

@osirisinferi
Copy link
Collaborator

Would the --run-deploy-hooks option suffice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants