mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: stop forking regular backup jobs
This commit is contained in:
@ -12,7 +12,11 @@ module BackupRestore
|
||||
LOGS_CHANNEL = "/admin/backups/logs"
|
||||
|
||||
def self.backup!(user_id, opts = {})
|
||||
start! BackupRestore::Backuper.new(user_id, opts)
|
||||
if opts[:fork] == false
|
||||
BackupRestore::Backuper.new(user_id, opts).run
|
||||
else
|
||||
start! BackupRestore::Backuper.new(user_id, opts)
|
||||
end
|
||||
end
|
||||
|
||||
def self.restore!(user_id, opts = {})
|
||||
|
Reference in New Issue
Block a user