summaryrefslogtreecommitdiff
path: root/deploy_static
blob: 7ffdedfa88e08d168503b212da9aad76d3e4c65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -x

set -o errexit

remote=www-data@grapheneos.org
current=$(ssh $remote readlink html)

if [[ $current = html_a ]]; then
    target=html_b
else
    target=html_a
fi

rsync -rcve ssh --delete static/ $remote:$target
ssh $remote chmod -R a+rX $target
ssh $remote ln -snf $target html