mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
stop / start hotspot through systemd
This commit is contained in:
parent
0dcddf281c
commit
ddc23c17b5
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
# Stop vpn client
|
# Stop vpn client
|
||||||
ynh_print_info --message="Stopping hotspot in order to edit files"
|
ynh_print_info --message="Stopping hotspot in order to edit files"
|
||||||
/usr/local/bin/${service_name} stop
|
systemctl stop ${service_name}
|
||||||
|
|
||||||
_ynh_app_config_apply
|
_ynh_app_config_apply
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ ynh_app_config_apply() {
|
||||||
|
|
||||||
# Start hotspot
|
# Start hotspot
|
||||||
ynh_print_info --message="Starting hotspot service if needed"
|
ynh_print_info --message="Starting hotspot service if needed"
|
||||||
/usr/local/bin/${service_name} start
|
systemctl start ${service_name}
|
||||||
else
|
else
|
||||||
ynh_print_info --message="Cleanup hotspot config files"
|
ynh_print_info --message="Cleanup hotspot config files"
|
||||||
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
|
ynh_secure_remove --file="/etc/hostapd/$app/hostapd.conf"
|
||||||
|
|
Loading…
Reference in a new issue