mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Add post_app_restore hook
This commit is contained in:
parent
51d8608b40
commit
ffa8eb38ed
1 changed files with 6 additions and 0 deletions
|
@ -1554,6 +1554,12 @@ class RestoreManager:
|
|||
if not restore_failed:
|
||||
self.targets.set_result("apps", app_instance_name, "Success")
|
||||
operation_logger.success()
|
||||
|
||||
# Call post_app_restore hook
|
||||
env_dict = _make_environment_for_app_script(
|
||||
app_instance_name
|
||||
)
|
||||
hook_callback("post_app_restore", env=env_dict)
|
||||
else:
|
||||
self.targets.set_result("apps", app_instance_name, "Error")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue