summaryrefslogtreecommitdiff
path: root/deploy_static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-04-25 13:17:03 -0400
committerDaniel Micay <danielmicay@gmail.com>2021-04-25 13:21:52 -0400
commitd9670b0e17a80c9b2a6822c5e94314a33c91808f (patch)
treeabc5e2f285755974b672e4167dcf5c5fea5ad07d /deploy_static
parent7835f0eedfe30731015fd77c69dcb5a91756756b (diff)
swap nginx root instead of using the symlink
Diffstat (limited to 'deploy_static')
-rwxr-xr-xdeploy_static1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy_static b/deploy_static
index 3cfee43c..f152086f 100755
--- a/deploy_static
+++ b/deploy_static
@@ -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