From e9fead4bd969035840b5626c9e92a0c1894f3c32 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 9 Nov 2019 13:25:46 +0100 Subject: [PATCH] fixed an issue with pihole detection in cron --- synchole.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synchole.sh b/synchole.sh index 2ca7b12..e58398a 100755 --- a/synchole.sh +++ b/synchole.sh @@ -34,7 +34,7 @@ amiroot() { ## check if pi-hole is installed amipihole() { - if [ ! $(which pihole) ]; then + if [ ! $(which /usr/local/bin/pihole) ]; then return 1 fi } @@ -126,7 +126,7 @@ create_path() { ## update pi-hole lists (run updateGravity) update_gravity() { - pihole -g > /dev/null + /usr/local/bin/pihole -g > /dev/null if [ $? -ne 0 ]; then return 1 fi