Source setupVars.conf before trying to access variables

This commit is contained in:
DL6ER 2017-01-03 13:34:01 +01:00
parent 76531da340
commit 3a90c1c192
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -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