Different renew-hooks for different domains


is there any way in which I can trigger different renew hooks from the /etc/letsencrypt/renewal-hooks/deploy directory based on the domain renewed?

I have different services with different certificates, and it doesn’t make any sense to restart all the services if the respective certificate for that service was not renewed.

Can I do this?


Hi @Fla,

You might want to look at the RENEWED_LINEAGE and RENEWED_DOMAINS environment variables, which are made available to the hook scripts.

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