summaryrefslogtreecommitdiff
path: root/git-maintenance
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 18:42:46 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 18:42:46 -0800
commit98757634f19d9016144f1eed935bddae1469af20 (patch)
treec93b077b43f578cf070946d5ed7f4aa063d3ce5e /git-maintenance
parent04f47b77d6d8c058a923ac6d85b1fdc762edebad (diff)
downloadstandingwithresilience-98757634f19d9016144f1eed935bddae1469af20.tar.gz
standingwithresilience-98757634f19d9016144f1eed935bddae1469af20.zip
add nonce to packfile get
Diffstat (limited to 'git-maintenance')
-rwxr-xr-xgit-maintenance/get.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/git-maintenance/get.sh b/git-maintenance/get.sh
index e131f18..d980d98 100755
--- a/git-maintenance/get.sh
+++ b/git-maintenance/get.sh
@@ -43,7 +43,12 @@ openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -d -in encrypted/refs.aes |
for encpack in $(<encrypted/list.txt)
do
- wget "$URLPFX"/"$encpack" -O encrypted/"$encpack"
+ while ! curl -sfI "$URLPFX"/"$encpack"?"$NONCE"
+ do
+ sleep 1;
+ NONCE="$(date +%s)"
+ done
+ wget "$URLPFX"/"$encpack"?"$NONCE" -O encrypted/"$encpack"
openssl aes-256-cbc -salt -pbkdf2 -pass "file:$PASS" -d -in encrypted/"$encpack" | tar -Jxvf -
done