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:
parent
ac6cff8a93
commit
5205776551
1 changed files with 5 additions and 2 deletions
|
@ -117,6 +117,9 @@ ynh_system_user_create --username=$app
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring hotspot..."
|
ynh_script_progression --message="Configuring hotspot..."
|
||||||
|
|
||||||
|
ip6_net=""
|
||||||
|
ip6_dns=""
|
||||||
|
|
||||||
ip4_nat_prefix_index=${app##*__}
|
ip4_nat_prefix_index=${app##*__}
|
||||||
if [[ "${ip4_nat_prefix_index}" == "${app}" ]]; then
|
if [[ "${ip4_nat_prefix_index}" == "${app}" ]]; then
|
||||||
ip4_nat_prefix_index=0
|
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=wifi_channel --value="${wifi_channel}"
|
||||||
ynh_app_setting_set --app=$app --key=advanced --value=0
|
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_firewall --value=1
|
||||||
ynh_app_setting_set --app=$app --key=ip6_net --value=""
|
ynh_app_setting_set --app=$app --key=ip6_net --value="${ip6_net}"
|
||||||
ynh_app_setting_set --app=$app --key=ip6_dns --value=""
|
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_dns --value="${ip4_dns}"
|
||||||
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value="${ip4_nat_prefix}"
|
ynh_app_setting_set --app=$app --key=ip4_nat_prefix --value="${ip4_nat_prefix}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue