diff options
author | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-07 18:42:46 -0800 |
---|---|---|
committer | olpc user <olpc@xo-5d-f7-86.localdomain> | 2020-01-07 18:42:46 -0800 |
commit | 98757634f19d9016144f1eed935bddae1469af20 (patch) | |
tree | c93b077b43f578cf070946d5ed7f4aa063d3ce5e /git-maintenance/get.sh | |
parent | 04f47b77d6d8c058a923ac6d85b1fdc762edebad (diff) | |
download | standingwithresilience-98757634f19d9016144f1eed935bddae1469af20.tar.gz standingwithresilience-98757634f19d9016144f1eed935bddae1469af20.zip |
add nonce to packfile get
Diffstat (limited to 'git-maintenance/get.sh')
-rwxr-xr-x | git-maintenance/get.sh | 7 |
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 |