Sha256: 6ce74e71a90f3822fb736ca18ca8fd2262f597d8530f1d706be7729a8a0f67a6
Contents?: true
Size: 514 Bytes
Versions: 13
Compression:
Stored size: 514 Bytes
Contents
worked=1 s3_path="<%= data[:s3_url] %>" output_path="<%= data[:rpm_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 ..." timeout 600 aws s3 cp --quiet $s3_path $output_path 2> >(log) && worked=0 || (log "fetch: attempt failed, sleeping 30"; sleep 30) done [[ $worked != 0 ]] && fatal "fetch: failed to pull rpm from S3" log "fetch: successfully fetched $s3_path" yum -y install "<%= data[:rpm_path] %>"
Version data entries
13 entries across 13 versions & 1 rubygems