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

fix undefined captive_portal var after upgrade

This commit is contained in:
HgO 2024-08-17 00:34:38 +02:00
parent 6f2275a93a
commit db054499c3

View file

@ -45,6 +45,15 @@ if [ -z ${service_name:-} ]; then
ynh_app_setting_set --app=$app --key=service_name --value=$service_name
fi
if [ -z ${captive_portal:-} ]; then
captive_portal=0
ynh_app_setting_set --app=$app --key=captive_portal --value=$captive_portal
fi
if [ -z ${captive_portal_url:-} ]; then
captive_portal_url=""
ynh_app_setting_set --app=$app --key=captive_portal_url --value=$captive_portal_url
fi
if [[ -n "${multissid:-}" ]] && [[ "${multissid}" -gt 1 ]]; then
wifi_ssid=$(cut -d'|' -f 1 <<< ${wifi_ssid})
wifi_secure=$(cut -d'|' -f 1 <<< ${wifi_secure})