mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Some service has no test_conf
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
c5885000ec
commit
e0fe82f566
1 changed files with 1 additions and 1 deletions
|
@ -1908,7 +1908,7 @@ def app_config_set(operation_logger, app, key=None, value=None, args=None, args_
|
|||
logger.debug(f"Reloading {service}")
|
||||
if not _run_service_command('reload-or-restart', service):
|
||||
services = _get_services()
|
||||
test_conf = services[service].get('test_conf')
|
||||
test_conf = services[service].get('test_conf', 'true')
|
||||
errors = check_output(f"{test_conf}; exit 0") if test_conf else ''
|
||||
raise YunohostError(
|
||||
"app_config_failed_service_reload",
|
||||
|
|
Loading…
Add table
Reference in a new issue