different exit value when a certificate is renewed #59

Closed
opened 2025-12-29 00:23:50 +01:00 by adam · 3 comments
Owner

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

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
adam closed this issue 2025-12-29 00:23:50 +01:00
Author
Owner

@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.

@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.
Author
Owner

@tobyblake commented on GitHub (Feb 12, 2016):

Ah, that is nice - thanks for that.

@tobyblake commented on GitHub (Feb 12, 2016): Ah, that is nice - thanks for that.
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#59