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:
parent
99cd3ff6ee
commit
979d03aa68
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue