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 renewal no env variables for hooks #9141
Comments
|
RENEWED_DOMAINS could provide a space-separated list (as indicated by the name). About case 1: |
Yes, if you put pre/post hook scripts into the If you want to a pre/post hook which is specific only to one certificate, issuing the certificate with the |
You mean I have to put the pre- and post-hook scripts into another directory to make sure that they are run only if "their" certificate got updated? Can this still be a common directory for all certificates? |
I think it's helpful to think of the Otherwise, anything certificate-specific should go outside of those directories and be set per-certificate, yes. |
I wonder where this could be found in the man page? |
A lot of this information is buried in https://eff-certbot.readthedocs.io/en/stable/using.html#renewing-certificates, but it could be improved, yes. |
I am testing the --deploy-hook command line argument with --dry-run and --force-renewal and my php script is NOT receiving the environment variables that it's supposed to. I have tried to access them via getenv() function and also using $_ENV and $_SERVER arrays too. Do you have an idea why? |
|
This comment was marked as outdated.
This comment was marked as outdated.
We've made a lot of changes to Certbot since this issue was opened. If you still have this issue with an up-to-date version of Certbot, can you please add a comment letting us know? This helps us to better see what issues are still affecting our users. If there is no activity in the next 30 days, this issue will be automatically closed. |
Cool. Will test this in the next few weeks |
Certbot renewal no env variables for hooks
when setting the post and deploy hook, the environment variables are not set by cerbot
I have tried
printenv
in the hook script and the variables dont existThe text was updated successfully, but these errors were encountered: