Hi folks,
There is a pull request to add support for "renew hooks":
The goal of this feature is to make it easy to run your own scripts during the renewal process, possibly based on the outcome of the renewal attempt. A simple example is that one script could be run to stop your web server (if you need the standalone authenticator, for example) before beginning renewal and then to restart the server after renewal is complete.
The new code defines three different kinds of hooks that you can optionally ask the client to run for you under particular circumstances:
- before obtaining any certs
- after obtaining all certs
- after a specific lineage is renewed
For the third case, the code provides two environment variables, RENEWED_LINEAGE
(a reference to the live
directory containing the objects associated with the successful renewal) and RENEWED_DOMAINS
(a list of all of the subject domains that were successfully renewed).
Are there other kinds of information that you would like to see made available in environment variables, that might be useful for your own shell scripts in some way?