Fix some broken logic in the gravity skip code (I should have read it better)

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
Adam Warner
2023-08-09 22:13:28 +01:00
parent 94795db7e9
commit 696895fa59
2 changed files with 19 additions and 15 deletions

View File

@@ -52,7 +52,9 @@ ensure_basic_configuration() {
# chown pihole:root "${PI_HOLE_BIN_DIR}/pihole"
mkdir -p /etc/pihole
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" >> /etc/pihole/adlists.list
if [[ ! -f /etc/pihole/adlists.list ]]; then
echo "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts" > /etc/pihole/adlists.list
fi
chown -R pihole:pihole /etc/pihole