File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -282,14 +282,16 @@ EOF
282282 s3cmd --acl-public put " bundles/$VERSION /ubuntu/gpg" " s3://$BUCKET /gpg"
283283
284284 local gpgFingerprint=36A1D7869245C8950F966E92D8576A8BA88D21E9
285+ local s3Headers=
285286 if [[ $BUCKET == test* ]]; then
286287 gpgFingerprint=740B314AE3941731B942C66ADF4FD13717AAD7D6
287288 elif [[ $BUCKET == experimental* ]]; then
288289 gpgFingerprint=E33FF7BF5C91D50A6F91FFFD4CC38D40F9A96B49
290+ s3Headers=' --add-header=Cache-Control:no-cache'
289291 fi
290292
291293 # Upload repo
292- s3cmd --acl-public sync " $APTDIR /" " s3://$BUCKET /ubuntu/"
294+ s3cmd --acl-public " $s3Headers " sync " $APTDIR /" " s3://$BUCKET /ubuntu/"
293295 cat << EOF | write_to_s3 s3://$BUCKET /ubuntu/index
294296# Check that HTTPS transport is available to APT
295297if [ ! -e /usr/lib/apt/methods/https ]; then
You can’t perform that action at this time.
0 commit comments