Execute deploy scripts for `nginx`.

This commit is contained in:
Kazuhiro MUSASHI 2021-05-01 21:29:30 +09:00
parent f55682e5c3
commit 1701922c91
1 changed files with 12 additions and 2 deletions

View File

@ -46,7 +46,17 @@ end
git '/home/webadm/repo/nginx-config' do
user 'webadm'
repository 'https://gitea.kazu634.com/kazu634/nginx-config.git'
not_if 'test -e /home/webadm/repo/nginx-config'
end
execute '/home/webadm/repo/nginx-config/deploy.sh' do
user 'root'
cwd '/home/webadm/repo/nginx-config/'
end
service 'consul-template' do
action :restart
end
service 'nginx' do
action :restart
end