diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2019-04-28 02:40:36 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2019-04-28 02:40:36 -0400 |
| commit | 19d2fc7200833639c15708b4a51f47f61d1b54f7 (patch) | |
| tree | 2fd1f3f95f64ae7284486e9b506d75eb17404e24 /deploy_static | |
| parent | b09989c22d5e5179d1adcdba3624a8c3fbc1bf26 (diff) | |
use relative path for deployment
Diffstat (limited to 'deploy_static')
| -rwxr-xr-x | deploy_static | 10 |
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 |
