Hi.
I'm having trouble applying a --reloadcmd "service nginx reload" to acme.sh. I found out that this is not applicable during cron execution by design, so I tried running this command to update all my certs with a reloadcmd:
This does, however, not work. My certificates are successfully renewed, but NGINX isn't reloaded to reflect the change. I have to do this manually.
Any idea how to add reload-cmd's the correct way to existing certificates without breaking anything?
You should do this one by one for all your certificates or create a simple for loop that checks the names in /etc/letsencrypt/live/ and add them to the acme.sh command.
Edit: I forgot to add the for loop example.
for i in /etc/letsencrypt/live/*; do acme.sh --install-cert -d $(basename $i) --home "/root/.acme.sh/" --cert-home "/etc/letsencrypt/live" --reloadcmd "service nginx reload"; done