mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-13 07:10:34 +01:00
different exit value when a certificate is renewed #59
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 @tobyblake on GitHub (Feb 12, 2016).
Hi there, firstly thanks for letsencrypt.sh - it looks to be really useful in my testing so far. One thing that would be very nice would be if you could indicate when a certificate has been renewed with a different exit value - that would enable me to automate things like restarting of apache, etc. without having to grep through the output from letsencrypt.sh.
Cheers
Toby
@germeier commented on GitHub (Feb 12, 2016):
My solution for this is to use a hook script. When the hook script is called with "deploy_cert" I know exactly which certificate is new and can do the correct stuff to activate the new cert.
@tobyblake commented on GitHub (Feb 12, 2016):
Ah, that is nice - thanks for that.
@lukas2511 commented on GitHub (Feb 12, 2016):
I am against changing the return code as "0" is for success, and that is what should be used when the script ends successfully.
Some people wanted a feature that only checks if all certificates are still valid.
I have an idea on how to implement this without duplicating a lot of code and will do that soon.