From 5b2143d814d41ee111a18bdd8570ac3be84e6526 Mon Sep 17 00:00:00 2001 From: HgO Date: Mon, 21 Aug 2023 22:46:38 +0200 Subject: [PATCH] stupid bash syntax --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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"