summaryrefslogtreecommitdiff
path: root/deploy-static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-11-25 18:59:28 -0500
committerDaniel Micay <danielmicay@gmail.com>2021-11-25 18:59:28 -0500
commit0a6b4ba7fc1f1e251a32d59297bfaa8bf4c65eaa (patch)
tree5f56cd8d0ea47957defc519ad20ddf23b0c3e1e3 /deploy-static
parentc20907189e0f5130b7fbb66b63ce84b3cc2c2cee (diff)
use nginx-tmp for final nginx.conf
Diffstat (limited to 'deploy-static')
-rwxr-xr-xdeploy-static5
1 files changed, 2 insertions, 3 deletions
diff --git a/deploy-static b/deploy-static
index b2b81955..d2d43de0 100755
--- a/deploy-static
+++ b/deploy-static
@@ -33,9 +33,8 @@ for server in ${servers[@]}; do
ssh $remote ln -snf $target /srv/grapheneos.org
ssh $remote sync /srv/grapheneos.org
- 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
+ sed "s|/srv/grapheneos.org|$target|" nginx-tmp/nginx.conf > nginx-tmp/nginx.conf.root
+ rsync -rptcv --chmod=D755,F644 --delete nginx-tmp/nginx.conf.root $remote:/etc/nginx/nginx.conf
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