summaryrefslogtreecommitdiff
path: root/deploy-static
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2023-07-15 16:34:24 -0400
committerDaniel Micay <daniel.micay@grapheneos.org>2023-07-15 17:56:13 -0400
commitc748d7e9607f443ffe8f736e279728a15c078a6b (patch)
treedcac99fcd1e7025df87ee87344617b252ecafd3e /deploy-static
parent8a4a08cae892399ba37a3dfcba8009d0438e4333 (diff)
simplify nginx configuration deployment
Diffstat (limited to 'deploy-static')
-rwxr-xr-xdeploy-static6
1 files changed, 2 insertions, 4 deletions
diff --git a/deploy-static b/deploy-static
index 518222cc..ce96e6ac 100755
--- a/deploy-static
+++ b/deploy-static
@@ -36,10 +36,8 @@ for server in ${servers[@]}; do
rsync -rptcv --fsync --chmod=D755,F644 --delete static-tmp/ $remote:$target
ssh $remote "ln -snf $target /srv/grapheneos.org && sync /srv/grapheneos.org"
- sed "s|/srv/grapheneos.org|$target|" nginx-tmp/nginx.conf > nginx-tmp/nginx.conf.root
- rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/nginx.conf.root $remote:/etc/nginx/nginx.conf
- rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/mime.types $remote:/etc/nginx/mime.types
- rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets
+ echo "root $target;" > nginx-tmp/root_grapheneos.org.conf
+ rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/{nginx.conf,mime.types,root_grapheneos.org.conf,snippets} $remote:/etc/nginx/
ssh $remote nginx -s reload
echo