summaryrefslogtreecommitdiff
path: root/deploy-static
diff options
context:
space:
mode:
authorDaniel Micay <daniel.micay@grapheneos.org>2024-03-06 15:02:35 -0500
committerDaniel Micay <daniel.micay@grapheneos.org>2024-03-06 15:11:03 -0500
commit93cf3596cc13f0db926ae028dae159412beb6954 (patch)
tree7390e7ab4aed4e88738d226e7c7a6a3a6e4efd6e /deploy-static
parent9b4be7d481bf201a0e8d28b1025ce4627f1283f6 (diff)
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.
Diffstat (limited to 'deploy-static')
-rwxr-xr-xdeploy-static5
1 files changed, 5 insertions, 0 deletions
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