initial commit based on seamlessupdate.app

This commit is contained in:
Daniel Micay
2019-04-25 17:58:53 -04:00
commit 1f78b34072
11 changed files with 306 additions and 0 deletions

17
deploy_static Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash -x
set -o errexit
remote=root@grapheneos.org
current=$(ssh $remote readlink /var/www/html)
if [[ $current = html_a ]]; then
target=html_b
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