Use the latest certbot instead of the old letsencrypt
This commit is contained in:
@@ -19,7 +19,7 @@ application "sockethub" do
|
||||
action :deploy
|
||||
|
||||
repository 'https://github.com/sockethub/sockethub.git'
|
||||
revision 'master'
|
||||
revision 'v1.0.5'
|
||||
|
||||
nodejs do
|
||||
entry_point '/srv/sockethub/current/bin/sockethub'
|
||||
|
||||
@@ -38,8 +38,8 @@ template "#{node['nginx']['dir']}/sites-available/sockethub" do
|
||||
end
|
||||
|
||||
execute "letsencrypt cert for sockethub.kosmos.org" do
|
||||
command "./letsencrypt-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/sockethub -d sockethub.kosmos.org"
|
||||
cwd "/usr/local/letsencrypt"
|
||||
command "./certbot-auto certonly --webroot --agree-tos --email ops@5apps.com --webroot-path /var/www/sockethub -d sockethub.kosmos.org -n"
|
||||
cwd "/usr/local/certbot"
|
||||
not_if { File.exist? "/etc/letsencrypt/live/sockethub.kosmos.org/fullchain.pem" }
|
||||
notifies :reload, "service[nginx]", :delayed
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user