Sha256: 379f56e884a8fdbd908d131cbf720feba0dd5eaf1bc88cb206dc9ea722238eb4
Contents?: true
Size: 490 Bytes
Versions: 11
Compression:
Stored size: 490 Bytes
Contents
worked=1 s3_path="<%= data[:s3_url] %>" output_path="<%= data[:deb_path] %>" log "fetch: starting to fetch $s3_path" for attempt in {1..200}; do [[ $worked != 0 ]] || break log "fetch: attempt ${attempt} to get $s3_path ..." s3cmd -f get $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30) done [[ $worked != 0 ]] && fatal "fetch: failed to pull deb from S3" log "fetch: successfully fetched $s3_path" dpkg -i "<%= data[:deb_path] %>"
Version data entries
11 entries across 11 versions & 1 rubygems