use new rsync fsync parameter
This commit is contained in:
parent
43f9f22856
commit
0ea0e90200
@ -9,7 +9,7 @@ for replica in ${replicas[@]}; do
|
|||||||
echo Deploying to $replica
|
echo Deploying to $replica
|
||||||
echo
|
echo
|
||||||
|
|
||||||
rsync -rptvl --progress --delete /etc/letsencrypt/ $replica:/etc/letsencrypt
|
rsync -rptvl --fsync --progress --delete /etc/letsencrypt/ $replica:/etc/letsencrypt
|
||||||
rsync -rptvl --progress --delete /etc/nginx/ocsp-cache/ $replica:/etc/nginx/ocsp-cache
|
rsync -rptvl --fsync --progress --delete /etc/nginx/ocsp-cache/ $replica:/etc/nginx/ocsp-cache
|
||||||
ssh root@$replica nginx -s reload
|
ssh root@$replica nginx -s reload
|
||||||
done
|
done
|
||||||
|
@ -30,13 +30,13 @@ for server in ${servers[@]}; do
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
ssh $remote "rm -rf $target && cp -a $active $target"
|
ssh $remote "rm -rf $target && cp -a $active $target"
|
||||||
rsync -rptcv --chmod=D755,F644 --delete static-tmp/ $remote:$target
|
rsync -rptcv --fsync --chmod=D755,F644 --delete static-tmp/ $remote:$target
|
||||||
ssh $remote "sync -f $target && ln -snf $target /srv/grapheneos.org && sync /srv/grapheneos.org"
|
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
|
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 --fsync --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
|
rsync -rptcv --fsync --chmod=D755,F644 --delete nginx-tmp/snippets/ $remote:/etc/nginx/snippets
|
||||||
ssh $remote "sync /etc/nginx/nginx.conf /etc/nginx/snippets/* && nginx -s reload"
|
ssh $remote nginx -s reload
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo active is now $target
|
echo active is now $target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user