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

stupid bash syntax

This commit is contained in:
HgO 2023-08-21 22:46:38 +02:00
parent baf3dac35f
commit 5b2143d814
2 changed files with 4 additions and 4 deletions

View file

@ -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 [[ -n ${wifi_device} ]]; then
if [ "${wifi_secure}" -eq 1 ]; then if [ "${wifi_secure}" -eq 1 ]; then
local sec_comment="" sec_comment=""
else else
local sec_comment="#" sec_comment="#"
fi fi
ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf" ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf"

View file

@ -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 [[ -n ${wifi_device} ]]; then
if [ "${wifi_secure}" -eq 1 ]; then if [ "${wifi_secure}" -eq 1 ]; then
local sec_comment="" sec_comment=""
else else
local sec_comment="#" sec_comment="#"
fi fi
ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf" ynh_add_config --template="/etc/hostapd/$app/hostapd.conf.tpl" --destination="/etc/hostapd/$app/hostapd.conf"