From 02d658be65e2d68f2accf27a5fb686b4f3020a94 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 28 Dec 2016 16:31:55 +0000 Subject: [PATCH] Look for DHCP / DNS server settings which would have to be reapplied after updating (since we overwrite 01-pihole.conf) --- automated install/basic-install.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index cef7b7f0..cacc3ca6 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -888,6 +888,17 @@ finalExports() { echo "PIHOLE_DNS_2=${PIHOLE_DNS_2}" echo "QUERY_LOGGING=${QUERY_LOGGING}" }>> "${setupVars}" + + # Look for DHCP / DNS server settings which would have to be reapplied + source "${setupVars}" + source "/etc/.pihole/advanced/Scripts/webpage.sh" + if [[ "${DNS_FQDN_REQUIRED}" != "" ]] ; then + ProcessDNSSettings + fi + + if [[ "${DHCP_ACTIVE}" == "true" ]] ; then + ProcessDHCPSettings + fi } installPihole() {