mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 00:35:50 +00:00
add event for other backup choices
This commit is contained in:
parent
aea9db56d4
commit
b5823a3b03
@ -30,7 +30,11 @@ class Backup
|
|||||||
end
|
end
|
||||||
|
|
||||||
def after_create_hook
|
def after_create_hook
|
||||||
upload_to_s3 if SiteSetting.enable_s3_backups?
|
if SiteSetting.enable_s3_backups?
|
||||||
|
upload_to_s3
|
||||||
|
else
|
||||||
|
DiscourseEvent.trigger(:backup_choice)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_remove_hook
|
def after_remove_hook
|
||||||
|
Loading…
x
Reference in New Issue
Block a user