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

fix unbound var

This commit is contained in:
HgO 2023-08-21 21:59:27 +02:00
parent 5d8ea57e2a
commit eaf7b994b0

View file

@ -93,8 +93,10 @@ EOF
} }
get__dns() { get__dns() {
ip6_dns=$(ynh_app_setting_get $app ip6_dns | tr -d '[]') ip6_net=$(ynh_app_setting_get --app=$app --key=ip6_net)
ip4_dns=$(ynh_app_setting_get $app ip4_dns) ip6_dns=$(ynh_app_setting_get --app=$app --key=ip6_dns | tr -d '[]')
ip4_nat_prefix=$(ynh_app_setting_get --app=$app --key=ip4_nat_prefix)
ip4_dns=$(ynh_app_setting_get --app=$app --key=ip4_dns)
if [[ -n ${ip6_net} ]] && [[ -z ${ip6_dns} ]]; then if [[ -n ${ip6_net} ]] && [[ -z ${ip6_dns} ]]; then
ip6_dns="${ip6_net}1" ip6_dns="${ip6_net}1"