Skip to content

Commit

Permalink
consistent last modified timestamps across mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
thestinger committed Mar 4, 2024
1 parent 99d6a71 commit b396523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/logs/
/nginx-tmp/
/releases/
/static-deploy/
/static-tmp/
/venv/
6 changes: 5 additions & 1 deletion deploy-static
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ fi
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.releases.grapheneos.org
rsync -rptcv --chmod=D755,F644 --delete --fsync --preallocate root@${servers[0]}:/srv/releases.grapheneos.org/ static-deploy
rsync -rpcv --chmod=D755,F644 --delete --fsync --preallocate static-tmp/ static-deploy

for server in ${servers[@]}; do
echo $server

Expand All @@ -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/releases.grapheneos.org && sync /srv/releases.grapheneos.org"

echo "root $target;" > nginx-tmp/root_releases.grapheneos.org.conf
Expand Down

0 comments on commit b396523

Please sign in to comment.