From c83dd3ccd7dfafbd6e843b5a99df4b67de8549d7 Mon Sep 17 00:00:00 2001 From: tuplink Date: Thu, 20 Oct 2016 18:45:27 -0400 Subject: [PATCH] change spacing --- pihole | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pihole b/pihole index 7d5f59b5..1c7d11e3 100755 --- a/pihole +++ b/pihole @@ -130,25 +130,25 @@ piholeStatus() { if [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "#addn-hosts=/") ]] ; then #list is commented out if [[ "${1}" == "web" ]] ; then - echo 0; - else - echo "::: pihole is Disabled"; + echo 0; + else + echo "::: pihole is Disabled"; fi elif [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "addn-hosts=/") ]] ; then - #list set - if [[ "${1}" == "web" ]] ; then + #list set + if [[ "${1}" == "web" ]] ; then echo 1; - else - echo "::: pihole is Enabled"; + else + echo "::: pihole is Enabled"; fi else #addn-host not found if [[ "${1}" == "web" ]] ; then - echo 99 - else + echo 99 + else echo "::: no hosts file linked to dnsmasq, adding it in enabled state" - fi - #add addn-host= to dnsmasq + fi + #add addn-host= to dnsmasq echo "addn-hosts=/etc/pihole/gravity.list" >> /etc/dnsmasq.d/01-pihole.conf restartDNS fi