diff --git a/pihole b/pihole index 325ca34b..ddb8c707 100755 --- a/pihole +++ b/pihole @@ -223,7 +223,7 @@ Time: fi local str="Pi-hole Disabled" - sed -i "s/BLOCKING_ENABLED=true/BLOCKING_ENABLED=false/" "${setupVars}" + sed -i "s/^BLOCKING_ENABLED=true/BLOCKING_ENABLED=false/" "${setupVars}" fi else # Enable Pi-hole @@ -235,7 +235,7 @@ Time: echo -e " ${INFO} Enabling blocking" local str="Pi-hole Enabled" - sed -i "s/BLOCKING_ENABLED=false/BLOCKING_ENABLED=true/" "${setupVars}" + sed -i "s/^BLOCKING_ENABLED=false/BLOCKING_ENABLED=true/" "${setupVars}" fi restartDNS reload-lists