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

declare empty vars for ip6_net and ip6_dns

This commit is contained in:
HgO 2023-09-18 10:48:18 +02:00
parent ac6cff8a93
commit 5205776551

View file

@ -117,6 +117,9 @@ ynh_system_user_create --username=$app
#=================================================
ynh_script_progression --message="Configuring hotspot..."
ip6_net=""
ip6_dns=""
ip4_nat_prefix_index=${app##*__}
if [[ "${ip4_nat_prefix_index}" == "${app}" ]]; then
ip4_nat_prefix_index=0
@ -136,8 +139,8 @@ 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_net --value=""
ynh_app_setting_set --app=$app --key=ip6_dns --value=""
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"
ynh_app_setting_set --app=$app --key=ip6_dns --value="${ip6_dns}"
ynh_app_setting_set --app=$app --key=ip4_dns --value="${ip4_dns}"
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value="${ip4_nat_prefix}"