summaryrefslogtreecommitdiff
path: root/deploy_static
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2019-07-05 22:46:36 -0400
committerDaniel Micay <danielmicay@gmail.com>2019-07-05 22:51:24 -0400
commita591521ff18e1ce03e71af28603b5ca54b7ce3a6 (patch)
tree6318f87cd4349093d4aab8f0cde124e2be1290d4 /deploy_static
parent9b792f976d32399a65bf55c1799cca5a521dfb69 (diff)
improve deployment script output
Diffstat (limited to 'deploy_static')
-rwxr-xr-xdeploy_static10
1 files changed, 7 insertions, 3 deletions
diff --git a/deploy_static b/deploy_static
index 7ffdedfa..95d76d02 100755
--- a/deploy_static
+++ b/deploy_static
@@ -1,16 +1,20 @@
-#!/bin/bash -x
+#!/bin/bash
set -o errexit
remote=www-data@grapheneos.org
-current=$(ssh $remote readlink html)
+active=$(ssh $remote readlink html)
-if [[ $current = html_a ]]; then
+if [[ $active = html_a ]]; then
target=html_b
else
target=html_a
fi
+echo active is $active
+echo target is $target
+echo
+
rsync -rcve ssh --delete static/ $remote:$target
ssh $remote chmod -R a+rX $target
ssh $remote ln -snf $target html