diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2022-05-05 02:14:58 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2022-05-05 02:24:21 -0400 |
| commit | 0ea0e9020080bb64680ce35039d1cdcb71132069 (patch) | |
| tree | 83523e65ef040f7d89e2d73118eeabe00199395f /deploy-static | |
| parent | 43f9f228567ce2604cc640f9255ba970b7c06e4d (diff) | |
use new rsync fsync parameter
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 287593c7..c063996d 100755 --- a/deploy-static +++ b/deploy-static @@ -30,13 +30,13 @@ for server in ${servers[@]}; do echo ssh $remote "rm -rf $target && cp -a $active $target" - rsync -rptcv --chmod=D755,F644 --delete static-tmp/ $remote:$target - ssh $remote "sync -f $target && ln -snf $target /srv/grapheneos.org && sync /srv/grapheneos.org" + rsync -rptcv --fsync --chmod=D755,F644 --delete static-tmp/ $remote:$target + ssh $remote "ln -snf $target /srv/grapheneos.org && sync /srv/grapheneos.org" sed "s|/srv/grapheneos.org|$target|" nginx-tmp/nginx.conf > nginx-tmp/nginx.conf.root - rsync -rptcv --chmod=D755,F644 --delete nginx-tmp/nginx.conf.root $remote:/etc/nginx/nginx.conf - rsync -rptcv --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets - ssh $remote "sync /etc/nginx/nginx.conf /etc/nginx/snippets/* && nginx -s reload" + rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/nginx.conf.root $remote:/etc/nginx/nginx.conf + rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets + ssh $remote nginx -s reload echo echo active is now $target |
