mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Not all promised environment variables available in hook script #541
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ingmar on GitHub (Jul 27, 2021).
It seems dehydrated doesn't actually make many of the variables from
dehydrated --envavailable to the hook scripts. I've ran across this with DOMAINS_TXT missing - adding it to the export line seems to fix it, but there's probably others that should be added here too.91cccc0c23/dehydrated (L577)@lukas2511 commented on GitHub (Jul 28, 2021):
Not really a bug, but probably bad wording.
dehydrated --envis available if (for whatever reason) you want to export the dehydrated config parameters for use in other scripts (e.g. a wrapper script which reuses the same config) or for debug purposes.Adding those exports might also require some documentation since some of those variables would then be certificate/domain-set specific, but only for certain hooks before they return to their original state, while others are valid for all domain-sets.
Since I'll be restructuring a lot around that config behaviour I won't add the exports right now, but I'll keep this issue open as reminder to add them later.