From 37e11592cd7d07b6e7ffeb01b799f129065478b5 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 3 Nov 2019 13:31:19 +0800 Subject: [PATCH] Do not execute the maitenance procedures. --- cookbooks/blog/ssl.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cookbooks/blog/ssl.rb b/cookbooks/blog/ssl.rb index b57731b..7a05379 100644 --- a/cookbooks/blog/ssl.rb +++ b/cookbooks/blog/ssl.rb @@ -1,13 +1,3 @@ -[ - 'rm -f /etc/nginx/sites-enabled/*', - 'ln -f -s /etc/nginx/sites-available/maintenance /etc/nginx/sites-enabled/maintenance', - 'systemctl reload nginx', - "test -e /etc/letsencrypt/live/#{node['blog']['FQDN']}/cert.pem || certbot certonly --webroot -d #{node['blog']['FQDN']} --webroot-path /usr/share/nginx/html/ --email simoom634@yahoo.co.jp --agree-tos -n", - '/home/webadm/bin/nginx-config.sh', -].each do |cmd| - execute cmd -end - remote_file "/etc/letsencrypt/live/#{node['blog']['FQDN']}/dhparams_4096.pem" do owner 'root' group 'root'