diff --git a/auto_install/install.sh b/auto_install/install.sh index a37c68f..bbb88ee 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -1350,7 +1350,6 @@ askClientDNS(){ if (whiptail --backtitle "Setup PiVPN" --title "Pi-hole" --yesno "We have detected a Pi-hole installation, do you want to use it as the DNS server for the VPN, so you get ad blocking on the go?" ${r} ${c}); then pivpnDNS1="$vpnGw" echo "interface=$pivpnDEV" | $SUDO tee /etc/dnsmasq.d/02-pivpn.conf > /dev/null - $SUDO pihole restartdns echo "pivpnDNS1=${pivpnDNS1}" >> /tmp/setupVars.conf echo "pivpnDNS2=${pivpnDNS2}" >> /tmp/setupVars.conf return @@ -1995,6 +1994,10 @@ restartServices(){ fi ;; esac + + if [ -f /etc/dnsmasq.d/02-pivpn.conf ]; then + $SUDO pihole restartdns + fi } askUnattendedUpgrades(){