Move the nginx hook to the deploy directory, create renewal-hooks dir

This commit is contained in:
Greg Karékinian 2019-03-14 20:21:34 +01:00
parent f50f48b55b
commit c3135402ad

View File

@ -15,7 +15,14 @@ end
package "certbot"
file "/etc/letsencrypt/renewal-hooks/post/nginx" do
directory "/etc/letsencrypt/renewal-hooks" do
recursive true
mode 0755
owner "root"
group "root"
end
file "/etc/letsencrypt/renewal-hooks/deploy/nginx" do
content <<-EOF
#!/usr/bin/env bash
# Reloading nginx is enough to read the new certificates