mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-11 22:30:44 +01:00
Add hook to be called at the end #170
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 @rossnick on GitHub (Dec 5, 2016).
Add a possibily to the hook script to be called at the end of all processing when any deploy_cert has been called.
That would be usefull for instance to restart/reload the apache/other webserver config only once, instead of at each time a cert is deployed when there are many certs to deploy.
@CRCinAU commented on GitHub (Dec 27, 2016):
I'm not sure this is required.... You could implement this with a normal hook, say, create a file called cert-deployed.txt and add your domains to it within the HOOK. If this file changes, run something else - ie:
Then in your normal HOOK file, touch the 'deployed_domains.txt' file within the deploy_cert stage.
@lukas2511 commented on GitHub (Jan 29, 2017):
This is a duplicate of #148, which I just closed.
See https://github.com/lukas2511/dehydrated/pull/148#issuecomment-275918581
Summary: Do more or less what @CRCinAU said, I just added a new hook to make this work without an actual wrapper script (
298a7e9aaf).