[certbot] trigger on successful renewal / return codes

I like to do “something” if my certificate files have been renewed and only then. How can I achieve this? Maybe (for sure) it’s me but I can’t find anything in the documentation where something like this is described. Can someone push me in the right direction?

thanks
Lars

I suspect the

--post-hook "whatever action/script you want"

options is what you are looking for.

1 Like
--renew-hook RENEW_HOOK
                    Command to be run in a shell once for each
                    successfully renewed certificate. For this command,
                    the shell variable $RENEWED_LINEAGE will point to the
                    config live subdirectory containing the new certs and
                    keys; the shell variable $RENEWED_DOMAINS will contain
                    a space-delimited list of renewed cert domains
                    (default: None)

that’s what I was looking for…

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.