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