Remove s3 bucket check in `migrate_to_s3` task.

Bucket creation is expected to be handled by the user. If the bucket
does not exist, the script will fail anyway.
This commit is contained in:
Guo Xiang Tan 2019-01-23 15:04:51 +08:00
parent 99cd3ff6ee
commit 979d03aa68
1 changed files with 0 additions and 7 deletions

View File

@ -258,13 +258,6 @@ def migrate_to_s3
bucket, folder = ENV["DISCOURSE_S3_BUCKET"], ""
end
begin
s3.head_bucket(bucket: bucket)
rescue Aws::S3::Errors::NotFound
puts "Bucket '#{bucket}' not found. Creating it..."
s3.create_bucket(bucket: bucket) unless dry_run
end
puts "Uploading files to S3..."
print " - Listing local files"