use nginx-tmp for final nginx.conf
This commit is contained in:
parent
c20907189e
commit
0a6b4ba7fc
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
nginx-tmp
|
||||
nginx.conf.root.tmp
|
||||
node_modules
|
||||
static-tmp
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user