mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user