Revert "Switch certbot to the Ubuntu packages instead of the Git repo"

This reverts commit 019bf85ecc.
This commit is contained in:
Greg Karékinian
2019-01-24 17:47:32 +01:00
parent a2b589003b
commit 8e01bf58ca
10 changed files with 37 additions and 28 deletions

View File

@@ -143,7 +143,8 @@ end
unless node.chef_environment == "development"
execute "letsencrypt cert for #{express_domain}" do
command "certbot certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/#{express_domain} -d #{express_domain} -n"
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/#{express_domain} -d #{express_domain} -n"
cwd "/usr/local/certbot"
not_if { File.exist? "/etc/letsencrypt/live/#{express_domain}/fullchain.pem" }
notifies :create, "template[#{node['nginx']['dir']}/sites-available/#{express_domain}]", :immediately
end