mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 15:13:33 +01:00
Argument to get certalias in hook script #600
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 @RinkAttendant6 on GitHub (Mar 21, 2023).
In the docs there is an option to use certalias in domains.txt like this
example.net example.org > certaliashttps://github.com/dehydrated-io/dehydrated/blob/v0.7.1/docs/examples/domains.txt#L13
It would be nice for the
certaliasvalue to be passed to thedeploy_cert(and maybeunchanged_cert) hooks.My current workaround works to some extent, but it will get the CERTDIR if there was no alias:
I suppose that I can mitigate this in my case by adding some kind of validation/lint script to ensure all entries in domains.txt have an alias.
In the bigger picture, I'm using the certalias values to determine where the files are supposed to be deployed to.
@lukas2511 commented on GitHub (May 14, 2023):
There is an
aliasenvironment variable that should be accessible in the hook scripts. In cases where no alias is defined it's content will be the default name (first domain).