mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
FIX: uploads:migrate_to_s3
broken for GlobalSetting using file provider.
This commit is contained in:
parent
0663ee5df2
commit
d82876896e
@ -228,7 +228,11 @@ def migrate_to_s3
|
||||
exit 1
|
||||
end
|
||||
|
||||
unless GlobalSetting.use_s3?
|
||||
unless ENV["DISCOURSE_S3_SECRET_ACCESS_KEY"].present? &&
|
||||
ENV["DISCOURSE_S3_REGION"].present? &&
|
||||
ENV["DISCOURSE_S3_ACCESS_KEY_ID"].present? &&
|
||||
ENV["DISCOURSE_S3_SECRET_ACCESS_KEY"].present?
|
||||
|
||||
puts <<~TEXT
|
||||
Please provide the following environment variables
|
||||
- DISCOURSE_S3_BUCKET
|
||||
|
Loading…
x
Reference in New Issue
Block a user