From b5b51d428f9b82d3d7459742e88738cd46ba790c Mon Sep 17 00:00:00 2001 From: pucherot Date: Tue, 26 Jan 2021 17:25:36 +0100 Subject: [PATCH] Update pialert_install.sh --- install/pialert_install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/pialert_install.sh b/install/pialert_install.sh index f37e36b1..a5134adc 100644 --- a/install/pialert_install.sh +++ b/install/pialert_install.sh @@ -119,7 +119,8 @@ ask_config() { if $PIHOLE_ACTIVE ; then DHCP_ACTIVE=`sudo grep DHCP_ACTIVE /etc/pihole/setupVars.conf | awk -F= '/./{print $2}'` - + if [ "$DHCP_ACTIVE" = "" ] ; then DHCP_ACTIVE=false; fi + if ! $DHCP_ACTIVE ; then ask_yesno "Pi-hole DHCP server is not active." \ "Do you want to activate Pi-hole DHCP server ?" @@ -752,7 +753,7 @@ print_header() { } process_error() { - log "\n" + log "" log "************************************************************" log "************************************************************" log "** ERROR INSTALLING PI.ALERT **"