mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-31 04:30:30 +00:00
Match start of line
as suggested in the review Signed-off-by: Lukas Schlötterer <80917404+lschloetterer@users.noreply.github.com> Co-authored-by: yubiuser <ckoenig@posteo.de>
This commit is contained in:
parent
c02967172e
commit
7b9700f867
1 changed files with 2 additions and 2 deletions
4
pihole
4
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
|
||||
|
|
Loading…
Add table
Reference in a new issue