swap nginx root instead of using the symlink

This commit is contained in:
Daniel Micay 2021-04-25 13:17:03 -04:00
parent 7835f0eedf
commit d9670b0e17

View File

@ -25,6 +25,7 @@ ssh $remote sync -f $target
ssh $remote ln -snf $target /srv/grapheneos.org
ssh $remote sync .
sed -i "s|/srv/grapheneos.org|$target|" nginx.conf.tmp
rsync -rpcv --chmod=D755,F644 --delete nginx.conf.tmp $remote:/etc/nginx/nginx.conf
ssh $remote sync -f /etc/nginx/nginx.conf
ssh $remote systemctl reload nginx