From f7054c6663aab582acfe95e310f3c2b63847e1d9 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Thu, 12 Nov 2020 15:57:47 +0900 Subject: [PATCH] Do not deploy `nginx` conf, if deployed. --- cookbooks/nginx/webadm.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/nginx/webadm.rb b/cookbooks/nginx/webadm.rb index 65afd74..f1e6ae4 100644 --- a/cookbooks/nginx/webadm.rb +++ b/cookbooks/nginx/webadm.rb @@ -46,5 +46,7 @@ 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