From 71c26f59eb12b1cdac95f5fb9f95be6ce1b28e18 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 25 Nov 2021 18:31:43 -0500 Subject: use a temporary directory for nginx configuration --- deploy-static | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deploy-static') diff --git a/deploy-static b/deploy-static index 84720168..b2b81955 100755 --- a/deploy-static +++ b/deploy-static @@ -33,10 +33,10 @@ for server in ${servers[@]}; do ssh $remote ln -snf $target /srv/grapheneos.org ssh $remote sync /srv/grapheneos.org - cp nginx.conf.tmp nginx.conf.root.tmp + cp nginx-tmp/nginx.conf nginx.conf.root.tmp sed -i "s|/srv/grapheneos.org|$target|" nginx.conf.root.tmp rsync -rptcv --chmod=D755,F644 --delete nginx.conf.root.tmp $remote:/etc/nginx/nginx.conf - rsync -rptcv --chmod=D755,F644 --delete nginx/snippets/ $remote:/etc/nginx/snippets + rsync -rptcv --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets ssh $remote 'sync /etc/nginx/nginx.conf /etc/nginx/snippets/*' ssh $remote nginx -s reload -- cgit v1.3.1