From a4a99e70f689360a2ad778dfecf127172c00827d Mon Sep 17 00:00:00 2001 From: HgO Date: Tue, 22 Aug 2023 09:28:36 +0200 Subject: [PATCH] fix config panel --- scripts/config | 2 ++ scripts/install | 1 + 2 files changed, 3 insertions(+) diff --git a/scripts/config b/scripts/config index 7cdcbe5..6ce9c2f 100644 --- a/scripts/config +++ b/scripts/config @@ -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 diff --git a/scripts/install b/scripts/install index 0eea9a7..276885f 100644 --- a/scripts/install +++ b/scripts/install @@ -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}"