mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix trigger for yunohost-api restart after self-upgrade
This commit is contained in:
parent
2bf161e522
commit
472e925077
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ def tools_upgrade(operation_logger, target=None):
|
|||
returncode = call_async_output(dist_upgrade, callbacks, shell=True)
|
||||
|
||||
# If yunohost is being upgraded from the webadmin
|
||||
if "yunohost" in upgradables and Moulinette.interface.type == "api":
|
||||
if any(p["name"] == "yunohost" for p in upgradables) and Moulinette.interface.type == "api":
|
||||
|
||||
# Restart the API after 10 sec (at now doesn't support sub-minute times...)
|
||||
# We do this so that the API / webadmin still gets the proper HTTP response
|
||||
|
|
Loading…
Add table
Reference in a new issue