Drop unnecessary readonly_during_backup setting (#9112)

This commit is contained in:
Roman Rizzi 2020-03-06 14:29:00 -03:00 committed by GitHub
parent 43b54c631d
commit 87687c0819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 4 deletions

View File

@ -1647,7 +1647,6 @@ en:
discord_secret: "Discord Secret Key"
discord_trusted_guilds: 'Only allow members of these Discord guilds to login via Discord. Use the numeric ID for the guild. For more information, check the instructions <a href="https://meta.discourse.org/t/configuring-discord-login-for-discourse/127129">here</a>. Leave blank to allow any guild.'
readonly_mode_during_backup: "Enable read only mode while taking a backup"
enable_backups: "Allow administrators to create backups of the forum"
allow_restore: "Allow restore, which can replace ALL site data! Leave false unless you plan to restore a backup"
maximum_backups: "The maximum amount of backups to keep on disk. Older backups are automatically deleted"

View File

@ -1649,8 +1649,6 @@ backups:
enable_backups:
default: true
client: true
readonly_mode_during_backup:
default: false
allow_restore:
default: false
backup_location:

View File

@ -106,7 +106,7 @@ module BackupRestore
end
@logs = []
@readonly_mode_was_enabled = Discourse.readonly_mode? || !SiteSetting.readonly_mode_during_backup
@readonly_mode_was_enabled = Discourse.readonly_mode?
end
def listen_for_shutdown_signal