Removed the content from the OP, so it’s just in the wiki–just one place to maintain now. Also changed the
--renew-hook command to
--reloadcmd so that things will sequence better on renewal.
--renew-hook runs before the new cert is copied to its destination, which means the
certificate-update event is run before the new certs being put in place. The info currently in the wiki is corrected. If you’ve already issued a cert using the
--renew-hook parameter (i.e., following the instructions that were there until yesterday), it’s easy to fix it.
The configuration file for your domain is in
/root/.acme.sh/your_fqdn/your_fqdn.conf. Edit that file with your editor of choice. In that file, look for the line that sets
Le_RenewHook, and remove that value leaving only the single quotes. Enter that value toward the end, on the line that sets
Le_ReloadCmd. Now the certificate-update event will be triggered at the proper time when the cert is next renewed.