Cherry picking 3f049fa79
, conflict fix
This commit is contained in:
parent
3df2ef8587
commit
f36e4ba336
2
pihole
2
pihole
|
@ -126,13 +126,13 @@ piholeEnable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
piholeLogging() {
|
piholeLogging() {
|
||||||
|
|
||||||
shift
|
shift
|
||||||
|
|
||||||
if [[ "${1}" == "off" ]] ; then
|
if [[ "${1}" == "off" ]] ; then
|
||||||
#Disable Logging
|
#Disable Logging
|
||||||
sed -i 's/^log-queries/#log-queries/' /etc/dnsmasq.d/01-pihole.conf
|
sed -i 's/^log-queries/#log-queries/' /etc/dnsmasq.d/01-pihole.conf
|
||||||
sed -i 's/^QUERY_LOGGING=true/QUERY_LOGGING=false/' /etc/pihole/setupVars.conf
|
sed -i 's/^QUERY_LOGGING=true/QUERY_LOGGING=false/' /etc/pihole/setupVars.conf
|
||||||
|
pihole -f
|
||||||
echo "::: Logging has been disabled!"
|
echo "::: Logging has been disabled!"
|
||||||
elif [[ "${1}" == "on" ]] ; then
|
elif [[ "${1}" == "on" ]] ; then
|
||||||
#Enable logging
|
#Enable logging
|
||||||
|
|
Loading…
Reference in New Issue