From c748d7e9607f443ffe8f736e279728a15c078a6b Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 15 Jul 2023 16:34:24 -0400 Subject: simplify nginx configuration deployment --- deploy-static | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'deploy-static') 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 -- cgit v1.3.1