mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 23:23:32 +01:00
More than one hook script #370
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 @puzich on GitHub (Aug 16, 2018).
Currently I use the hook to create dns-01 entries in powerdns. But it would be fine, to start a further script for internal server purposes, after updating the ssl certificates. Could this be possible?
@bllfr0g commented on GitHub (Aug 16, 2018):
Couldn’t you call your second script from the hook script?
@puzich commented on GitHub (Aug 16, 2018):
Good point. It is possible, but I don't want the change a script which I checked out ( https://github.com/silkeh/pdns_api.sh/blob/master/pdns_api.sh ) from github due to updating purposes.
@txr13 commented on GitHub (Aug 16, 2018):
Write a wrapper hook. Pass whatever hook functions you like to the existing hook (which can then remain unaltered), and overload the rest with whatever you want to customize.
@puzich commented on GitHub (Aug 16, 2018):
Yes! Good idea! Thank you!