diff --git a/scripts/install b/scripts/install index 6be322a..0eea9a7 100644 --- a/scripts/install +++ b/scripts/install @@ -201,9 +201,9 @@ systemctl unmask hostapd 2>&1 # On some system e.g. RPi, for some reason hostapd if [[ -n ${wifi_device} ]]; then if [ "${wifi_secure}" -eq 1 ]; then - local sec_comment="" + sec_comment="" else - local sec_comment="#" + sec_comment="#" fi ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf" diff --git a/scripts/upgrade b/scripts/upgrade index 464a152..e656456 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -206,9 +206,9 @@ install -b -o root -g root -m 0644 ../conf/dnsmasq_dhcpdv4.conf.tpl /etc/dnsmasq if [[ -n ${wifi_device} ]]; then if [ "${wifi_secure}" -eq 1 ]; then - local sec_comment="" + sec_comment="" else - local sec_comment="#" + sec_comment="#" fi ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf"