diff options
| author | Daniel Micay <daniel.micay@grapheneos.org> | 2024-03-04 12:07:16 -0500 |
|---|---|---|
| committer | Daniel Micay <daniel.micay@grapheneos.org> | 2024-03-04 12:15:01 -0500 |
| commit | 9300b2b8941d052ff13c7957ddc0b1b9db5289ae (patch) | |
| tree | e206419b858db5de26d9dacc7a17a68ac4c7c18b /deploy-static | |
| parent | 8af61b5d9cf542d9d9103e17ac40a16a6909bc6a (diff) | |
consistent last modified timestamps across mirrors
Diffstat (limited to 'deploy-static')
| -rwxr-xr-x | deploy-static | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deploy-static b/deploy-static index 1b933752..d65145b4 100755 --- a/deploy-static +++ b/deploy-static @@ -16,6 +16,10 @@ servers=({0..3}.grapheneos.org) rsync -pcv --chmod=F755 --fsync --preallocate certbot-replicate root@${servers[0]}:/usr/local/bin/ rsync -pcv --chmod=F644 --fsync --preallocate replicate.conf root@${servers[0]}:/etc/systemd/system/certbot-renew.service.d/ +# use last modified timestamps from 0.grapheneos.org +rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate root@${servers[0]}:/srv/grapheneos.org/ static-deploy +rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-deploy + for server in ${servers[@]}; do echo $server @@ -33,7 +37,7 @@ for server in ${servers[@]}; do echo ssh $remote "rm -rf $target && cp -a $active $target" - rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ $remote:$target + rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate static-deploy/ $remote:$target ssh $remote "ln -snf $target /srv/grapheneos.org && sync /srv/grapheneos.org" echo "root $target;" > nginx-tmp/root_grapheneos.org.conf |
