mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[enh] Support __APP__ in services config panel key
This commit is contained in:
parent
5dc1ee6266
commit
97128d7ddb
1 changed files with 2 additions and 0 deletions
|
@ -1912,6 +1912,8 @@ def app_config_set(operation_logger, app, key=None, value=None, args=None):
|
||||||
services_to_reload = list(services_to_reload)
|
services_to_reload = list(services_to_reload)
|
||||||
services_to_reload.sort(key = 'nginx'.__eq__)
|
services_to_reload.sort(key = 'nginx'.__eq__)
|
||||||
for service in services_to_reload:
|
for service in services_to_reload:
|
||||||
|
if service == "__APP__":
|
||||||
|
service = app
|
||||||
if not _run_service_command('reload_or_restart', service):
|
if not _run_service_command('reload_or_restart', service):
|
||||||
services = _get_services()
|
services = _get_services()
|
||||||
test_conf = services[service].get('test_conf')
|
test_conf = services[service].get('test_conf')
|
||||||
|
|
Loading…
Add table
Reference in a new issue