From 3a90c1c1923c972be3e4ebfa40d7ab01b956488e Mon Sep 17 00:00:00 2001 From: DL6ER Date: Tue, 3 Jan 2017 13:34:01 +0100 Subject: [PATCH] Source setupVars.conf before trying to access variables --- advanced/Scripts/webpage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 7fb339de..09f0e7dd 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -179,9 +179,10 @@ SetQueryLogOptions(){ ProcessDHCPSettings() { + source "${setupVars}" + if [[ "${DHCP_ACTIVE}" == "true" ]]; then - source "${setupVars}" interface=$(grep 'PIHOLE_INTERFACE=' /etc/pihole/setupVars.conf | sed "s/.*=//") # Use eth0 as fallback interface