david/synchole
david
/
synchole
Archived
1
0
Fork 0

fixed an issue with pihole detection in cron

This commit is contained in:
david 2019-11-09 13:25:46 +01:00
parent 4586e42f59
commit e9fead4bd9
1 changed files with 2 additions and 2 deletions

View File

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