Fix S3 location handling for US classic

pull/6/head
Justin Santa Barbara 2015-03-31 05:41:12 -07:00
parent 9ed87612d0
commit edbebd653c
1 changed files with 2 additions and 2 deletions

View File

@ -238,8 +238,8 @@ function upload-server-tars() {
local s3_bucket_location=$(aws --output text s3api get-bucket-location --bucket ${AWS_S3_BUCKET}) local s3_bucket_location=$(aws --output text s3api get-bucket-location --bucket ${AWS_S3_BUCKET})
local s3_url_base=https://s3-${s3_bucket_location}.amazonaws.com local s3_url_base=https://s3-${s3_bucket_location}.amazonaws.com
if [[ "${s3_bucket_location}" == "us-east-1" ]]; then if [[ "${s3_bucket_location}" == "None" ]]; then
# us-east-1 does not follow the pattern # "US Classic" does not follow the pattern
s3_url_base=https://s3.amazonaws.com s3_url_base=https://s3.amazonaws.com
fi fi