Run certbot using the binary provided by the Ubuntu PPA

This commit is contained in:
Greg Karékinian
2019-03-14 10:52:44 +01:00
parent fa27187f11
commit 36e046ea73
9 changed files with 9 additions and 25 deletions

View File

@@ -38,8 +38,7 @@ unless node.chef_environment == "development"
include_recipe "kosmos-base::letsencrypt"
execute "letsencrypt cert for blog.kosmos.org" do
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path #{node['wordpress']['dir']} -d blog.kosmos.org -n"
cwd "/usr/local/certbot"
command "/usr/bin/certbot certonly --webroot --agree-tos --email ops@5apps.com --webroot-path #{node['wordpress']['dir']} -d blog.kosmos.org -n"
not_if { File.exist? "/etc/letsencrypt/live/blog.kosmos.org/fullchain.pem" }
notifies :reload, "service[nginx]", :delayed
end