From e51559d856d5f29145f28d17aa0d402078218532 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 14 Mar 2019 02:39:00 +0100 Subject: [PATCH] Also set DAEMON_CONF in /etc/default/hostapd --- scripts/install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/install b/scripts/install index 305d09f..a483aa0 100644 --- a/scripts/install +++ b/scripts/install @@ -259,6 +259,10 @@ find /var/www/wifiadmin/ -type d -exec chmod +x {} \; ## hostapd sed 's|^DAEMON_CONF=$|&/etc/hostapd/hostapd.conf|' -i /etc/init.d/hostapd +# We also need to put this in /etc/default/hostapd because on some setup +# like RPi, the version of hostapd is different and /etc/init.d/hostapd +# isnt used ... instead the service is "pure systemd" ... +echo "DAEMON_CONF=/etc/hostapd/hostapd.conf" > /etc/default/hostapd ## nginx sed "s||${path_url}|g" -i "/etc/nginx/conf.d/${domain}.d/wifiadmin.conf"