-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Bit of a feature request. I think this could be just an oversight.
Background: all our domains were configured, for whatever reason, to use certbot in standalone mode. I'll probably change this. So they stop & start httpd.
How to reproduce (e.g Puppet code you use)
Create any letsencrypt rule using cron to run certbot with before/after hooks.
What are you seeing
When certbot fails for any reason in a cron run, there's no way to run a command if it fails, only if it succeeds.
So for instance, if you do:
cron_before_command => '/bin/systemctl stop httpd',
cron_success_command => '/bin/systemctl start httpd',
then HTTPD will be stopped, certbot fails, and httpd will not be restarted, even if the failure was transient.
I'd like, perhaps, a "cron_after_command".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request