mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Support for removal of old backups automatically via a site setting
This commit is contained in:
@ -49,9 +49,13 @@ class Admin::BackupsController < Admin::AdminController
|
||||
end
|
||||
|
||||
def destroy
|
||||
filename = params.fetch(:id)
|
||||
Backup.remove(filename)
|
||||
render nothing: true
|
||||
backup = Backup[params.fetch(:id)]
|
||||
if backup
|
||||
backup.remove
|
||||
render nothing: true
|
||||
else
|
||||
render nothing: true, status: 404
|
||||
end
|
||||
end
|
||||
|
||||
def logs
|
||||
|
Reference in New Issue
Block a user