1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Fix start/restart of the service during config panel operation, we have to use 'yunohost service' otherwise the lock is not transferred

This commit is contained in:
Alexandre Aubin 2023-10-08 13:05:20 +02:00
parent 07ade30f32
commit 7127e3b3a1

View file

@ -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"