Do not execute the maitenance procedures.

This commit is contained in:
Kazuhiro MUSASHI 2019-11-03 13:31:19 +08:00 committed by Gitea
parent 494f16b4f8
commit 37e11592cd
1 changed files with 0 additions and 10 deletions

View File

@ -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 remote_file "/etc/letsencrypt/live/#{node['blog']['FQDN']}/dhparams_4096.pem" do
owner 'root' owner 'root'
group 'root' group 'root'