mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
change spacing
This commit is contained in:
parent
78fbafa1cd
commit
c83dd3ccd7
22
pihole
22
pihole
@ -130,25 +130,25 @@ piholeStatus() {
|
|||||||
if [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "#addn-hosts=/") ]] ; then
|
if [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "#addn-hosts=/") ]] ; then
|
||||||
#list is commented out
|
#list is commented out
|
||||||
if [[ "${1}" == "web" ]] ; then
|
if [[ "${1}" == "web" ]] ; then
|
||||||
echo 0;
|
echo 0;
|
||||||
else
|
else
|
||||||
echo "::: pihole is Disabled";
|
echo "::: pihole is Disabled";
|
||||||
fi
|
fi
|
||||||
elif [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "addn-hosts=/") ]] ; then
|
elif [[ $(cat /etc/dnsmasq.d/01-pihole.conf | grep "addn-hosts=/") ]] ; then
|
||||||
#list set
|
#list set
|
||||||
if [[ "${1}" == "web" ]] ; then
|
if [[ "${1}" == "web" ]] ; then
|
||||||
echo 1;
|
echo 1;
|
||||||
else
|
else
|
||||||
echo "::: pihole is Enabled";
|
echo "::: pihole is Enabled";
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
#addn-host not found
|
#addn-host not found
|
||||||
if [[ "${1}" == "web" ]] ; then
|
if [[ "${1}" == "web" ]] ; then
|
||||||
echo 99
|
echo 99
|
||||||
else
|
else
|
||||||
echo "::: no hosts file linked to dnsmasq, adding it in enabled state"
|
echo "::: no hosts file linked to dnsmasq, adding it in enabled state"
|
||||||
fi
|
fi
|
||||||
#add addn-host= to dnsmasq
|
#add addn-host= to dnsmasq
|
||||||
echo "addn-hosts=/etc/pihole/gravity.list" >> /etc/dnsmasq.d/01-pihole.conf
|
echo "addn-hosts=/etc/pihole/gravity.list" >> /etc/dnsmasq.d/01-pihole.conf
|
||||||
restartDNS
|
restartDNS
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user