From 43949eb6379856eca7754c90974fc7c3034b7263 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 30 Mar 2021 10:58:04 -0400 Subject: move static site root to /srv --- deploy_static | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'deploy_static') diff --git a/deploy_static b/deploy_static index 3de1ed42..3cfee43c 100755 --- a/deploy_static +++ b/deploy_static @@ -6,12 +6,12 @@ set -o errexit -o nounset -o pipefail ./process_static remote=root@grapheneos.org -active=$(ssh $remote readlink /var/www/html) +active=$(ssh $remote readlink /srv/grapheneos.org) -if [[ $active = /var/www/html_a ]]; then - target=/var/www/html_b +if [[ $active = /srv/grapheneos.org_a ]]; then + target=/srv/grapheneos.org_b else - target=/var/www/html_a + target=/srv/grapheneos.org_a fi echo active is $active @@ -22,7 +22,7 @@ ssh $remote rm -rf $target ssh $remote cp -a $active $target rsync -rpcv --chmod=D755,F644 --delete static_tmp/ $remote:$target ssh $remote sync -f $target -ssh $remote ln -snf $target /var/www/html +ssh $remote ln -snf $target /srv/grapheneos.org ssh $remote sync . rsync -rpcv --chmod=D755,F644 --delete nginx.conf.tmp $remote:/etc/nginx/nginx.conf -- cgit v1.3.1