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:
Lukas Schlötterer 2022-01-12 07:46:30 +01:00 committed by GitHub
parent c02967172e
commit 7b9700f867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
pihole
View file

@ -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