diff --git a/lib/file_store/s3_store.rb b/lib/file_store/s3_store.rb index 053b23aa32e..6a26ebd7ee6 100644 --- a/lib/file_store/s3_store.rb +++ b/lib/file_store/s3_store.rb @@ -198,7 +198,7 @@ module FileStore FileUtils.symlink(source_path, public_upload_path) FileStore::ToS3Migration.new( - s3_options: FileStore::ToS3Migration.s3_options_from_env, + s3_options: FileStore::ToS3Migration.s3_options_from_site_settings, migrate_to_multisite: Rails.configuration.multisite, ).migrate diff --git a/lib/file_store/to_s3_migration.rb b/lib/file_store/to_s3_migration.rb index 6792b94e4ae..6f19f2d00fd 100644 --- a/lib/file_store/to_s3_migration.rb +++ b/lib/file_store/to_s3_migration.rb @@ -21,7 +21,7 @@ module FileStore def self.s3_options_from_site_settings { client_options: S3Helper.s3_options(SiteSetting), - bucket: SiteSetting.s3_upload_bucket + bucket: SiteSetting.Upload.s3_upload_bucket } end