diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2021-09-30 16:05:50 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-09-30 16:06:02 -0400 |
| commit | 73e78d49344ee861e339e81ea0b7d4c1d0b339ba (patch) | |
| tree | 3d5b77420cea1e99a73303614da1a0a20ffddb35 /deploy-static | |
| parent | 49fc7831de4a52609d5e761f97519d0cf12ddcf2 (diff) | |
sync local timestamps to servers for deployment
Diffstat (limited to 'deploy-static')
| -rwxr-xr-x | deploy-static | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy-static b/deploy-static index 0c9e543d..c5284621 100755 --- a/deploy-static +++ b/deploy-static @@ -29,14 +29,14 @@ for server in ${servers[@]}; do ssh $remote rm -rf $target ssh $remote cp -a $active $target - rsync -rpcv --chmod=D755,F644 --delete static_tmp/ $remote:$target + rsync -rptcv --chmod=D755,F644 --delete static_tmp/ $remote:$target ssh $remote sync -f $target ssh $remote ln -snf $target /srv/grapheneos.org ssh $remote sync /srv/grapheneos.org cp nginx.conf.tmp nginx.conf.root.tmp sed -i "s|/srv/grapheneos.org|$target|" nginx.conf.root.tmp - rsync -rpcv --chmod=D755,F644 --delete nginx.conf.root.tmp $remote:/etc/nginx/nginx.conf + rsync -rptcv --chmod=D755,F644 --delete nginx.conf.root.tmp $remote:/etc/nginx/nginx.conf ssh $remote sync -f /etc/nginx/nginx.conf ssh $remote nginx -s reload |
