diff options
| author | Cecylia Bocovich <cohosh@torproject.org> | 2019-12-10 13:34:19 -0500 |
|---|---|---|
| committer | Cecylia Bocovich <cohosh@torproject.org> | 2020-01-07 13:30:22 -0500 |
| commit | 21138997b6718ad92277786d348a72afa922cc17 (patch) | |
| tree | dbb9f8d21b15e8fcd2af9397e93859fd0e90b260 | |
| parent | ff078106501deb780d7e572f185a86f3dbfae3d5 (diff) | |
Update each tb binary individually
This modifies update_files to update each tor browser binary in gitlab,
internet archive, and google docs, and then delete the binary before
downloading the next one. This will save storage space on the gettor
host.
| -rwxr-xr-x | scripts/update_files | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/scripts/update_files b/scripts/update_files index f2629f6..c386220 100755 --- a/scripts/update_files +++ b/scripts/update_files @@ -23,6 +23,7 @@ git commit -am 'Create release branch' git checkout -b torbrowser-releases git push -f --follow-tags origin torbrowser-releases +rclone delete gdrive:releases for row in $( curl -s 'https://aus1.torproject.org/torbrowser/update_3/release/downloads.json' | @@ -34,6 +35,7 @@ for row in $( tr -d '",' ); if [[ $r = *[!\ ]* ]]; then + # Update GitLab git fetch --all wget $r git add . @@ -44,14 +46,17 @@ for row in $( else git push -f --follow-tags origin torbrowser-releases fi - fi; -done -rclone delete gdrive:releases + f=${r##*/} + + # Update Google Drive + rclone copy $f gdrive:releases -for f in $(ls); do - # Update Google Drive - rclone copy $f gdrive:releases - # Update Internet Archive - ia upload ${f} $f --remote-name=$f --metadata="title:${f}" --metadata="mediatype:software" --metadata="collection:open_source_software" + # Update Internet Archive + ia upload ${f} $f --remote-name=$f --metadata="title:${f}" --metadata="mediatype:software" --metadata="collection:open_source_software" + + rm $f + + fi; done + |
