Switch certbot to the Ubuntu packages instead of the Git repo
This commit is contained in:
@@ -39,8 +39,7 @@ end
|
||||
unless node.chef_environment == "development"
|
||||
include_recipe "kosmos-base::letsencrypt"
|
||||
execute "letsencrypt cert for #{server_name}" do
|
||||
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/mastodon -d #{server_name} -n"
|
||||
cwd "/usr/local/certbot"
|
||||
command "certbot certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/mastodon -d #{server_name} -n"
|
||||
not_if { File.exist? "/etc/letsencrypt/live/#{server_name}/fullchain.pem" }
|
||||
notifies :create, "template[#{node['nginx']['dir']}/sites-available/mastodon]", :immediately
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user