summaryrefslogtreecommitdiff
path: root/deploy_static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2019-04-28 02:40:36 -0400
committerDaniel Micay <danielmicay@gmail.com>2019-04-28 02:40:36 -0400
commit19d2fc7200833639c15708b4a51f47f61d1b54f7 (patch)
tree2fd1f3f95f64ae7284486e9b506d75eb17404e24 /deploy_static
parentb09989c22d5e5179d1adcdba3624a8c3fbc1bf26 (diff)
use relative path for deployment
Diffstat (limited to 'deploy_static')
-rwxr-xr-xdeploy_static10
1 files changed, 5 insertions, 5 deletions
diff --git a/deploy_static b/deploy_static
index 0db5cc3a..4cadea95 100755
--- a/deploy_static
+++ b/deploy_static
@@ -3,7 +3,7 @@
set -o errexit
remote=www-data@grapheneos.org
-current=$(ssh $remote readlink /var/www/html)
+current=$(ssh $remote readlink html)
if [[ $current = html_a ]]; then
target=html_b
@@ -11,7 +11,7 @@ else
target=html_a
fi
-ssh $remote rm -rf /var/www/$target
-scp -r static $remote:/var/www/$target
-ssh $remote chmod -R a+rX /var/www/$target
-ssh $remote ln -snf $target /var/www/html
+ssh $remote rm -rf $target
+scp -r static $remote:$target
+ssh $remote chmod -R a+rX $target
+ssh $remote ln -snf $target html