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

fix config panel

This commit is contained in:
HgO 2023-08-22 09:28:36 +02:00
parent 60e2cdd1d7
commit a4a99e70f6
2 changed files with 3 additions and 0 deletions

View file

@ -183,6 +183,8 @@ set__dns() {
# OVERWRITING APPLY STEP
#=================================================
ynh_app_config_apply() {
service_name=$(ynh_app_setting_get --app=$app --key=service_name)
# Stop vpn client
ynh_print_info --message="Stopping hotspot in order to edit files"
/usr/local/bin/${service_name} stop

View file

@ -147,6 +147,7 @@ ynh_app_setting_set --app=$app --key=wifi_secure --value="${wifi_secure}"
ynh_app_setting_set --app=$app --key=wifi_passphrase --value="${wifi_passphrase}"
ynh_app_setting_set --app=$app --key=wifi_device --value="${wifi_device}"
ynh_app_setting_set --app=$app --key=wifi_channel --value="${wifi_channel}"
ynh_app_setting_set --app=$app --key=advanced --value=0
ynh_app_setting_set --app=$app --key=ip6_firewall --value=1
ynh_app_setting_set --app=$app --key=ip6_dns --value="${ip6_dns}"
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"