From 7127e3b3a1ad693cb5f1d66be9e936c8d5d640d4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 8 Oct 2023 13:05:20 +0200 Subject: [PATCH] Fix start/restart of the service during config panel operation, we have to use 'yunohost service' otherwise the lock is not transferred --- scripts/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config b/scripts/config index ad92a84..a0a5fc8 100644 --- a/scripts/config +++ b/scripts/config @@ -199,7 +199,7 @@ ynh_app_config_apply() { # Stop vpn client ynh_print_info --message="Stopping hotspot in order to edit files" - systemctl stop ${service_name} + yunohost service stop $service_name _ynh_app_config_apply @@ -209,7 +209,7 @@ ynh_app_config_apply() { # Start hotspot ynh_print_info --message="Starting hotspot service if needed" - systemctl start ${service_name} + yunohost service start $service_name else ynh_print_info --message="Cleanup hotspot config files" ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"