mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:38 -06:00
Disable bootstrap mode before start importing
This commit is contained in:
parent
417bcf7d2e
commit
1390eb2957
@ -84,6 +84,12 @@ class ImportScripts::Base
|
||||
end
|
||||
|
||||
def change_site_settings
|
||||
if SiteSetting.bootstrap_mode_enabled
|
||||
SiteSetting.default_trust_level = TrustLevel[0] if SiteSetting.default_trust_level == TrustLevel[1]
|
||||
SiteSetting.default_email_digest_frequency = 10080 if SiteSetting.default_email_digest_frequency == 1440
|
||||
SiteSetting.bootstrap_mode_enabled = false
|
||||
end
|
||||
|
||||
@site_settings_during_import = get_site_settings_for_import
|
||||
|
||||
@site_settings_during_import.each do |key, value|
|
||||
|
Loading…
Reference in New Issue
Block a user