mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +08:00
FIX: Don't fail if s3_install_cors_rule
is off (#14865)
Regressed in #14802
This commit is contained in:
parent
5998e69b9c
commit
25ef395af8
|
@ -177,6 +177,11 @@ task 's3:ensure_cors_rules' => :environment do
|
|||
puts "Installing CORS rules..."
|
||||
result = S3CorsRulesets.sync(use_db_s3_config: use_db_s3_config)
|
||||
|
||||
if !result
|
||||
puts "skipping"
|
||||
return
|
||||
end
|
||||
|
||||
puts "Assets rules status: #{result[:assets_rules_status]}."
|
||||
puts "Backup rules status: #{result[:backup_rules_status]}."
|
||||
puts "Direct upload rules status: #{result[:direct_upload_rules_status]}."
|
||||
|
|
Loading…
Reference in New Issue
Block a user