From 93cf3596cc13f0db926ae028dae159412beb6954 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 6 Mar 2024 15:02:35 -0500 Subject: [PATCH] change br/gz timestamps to match source files This was lost as part of preserving existing file timestamps instead of using the timestamps from generated files. --- deploy-static | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/deploy-static b/deploy-static index d65145b4..51ca6c93 100755 --- a/deploy-static +++ b/deploy-static @@ -2,6 +2,8 @@ set -o errexit -o nounset -o pipefail +shopt -s extglob + touch lock exec {fd}< lock if ! flock -n $fd; then @@ -19,6 +21,9 @@ rsync -pcv --chmod=F644 --fsync --preallocate replicate.conf root@${servers[0]}: # 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 f in static-deploy/**.*(br|gz); do + touch -r "${f%.*}" "$f" +done for server in ${servers[@]}; do echo $server