From 1f78b34072693e94eb4e5ae0db1e8d7bc60807b2 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 25 Apr 2019 17:58:53 -0400 Subject: initial commit based on seamlessupdate.app --- deploy_static | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 deploy_static (limited to 'deploy_static') diff --git a/deploy_static b/deploy_static new file mode 100755 index 00000000..03d29071 --- /dev/null +++ b/deploy_static @@ -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 -- cgit v1.3.1