The issue I am facing:
I am trying to blacklist YouTube during some particular periods of the day. So I have tried to add a cron job using the pihole command (this is running on a Raspberry Pi Linux):
crontab -e # contents of the crontab */2 * * * * /home/pi/scripts/disableyt.sh 1-59/2 * * * * /home/pi/scripts/enableyt.sh # contents of the scripts: # disableyu.sh #!/bin/bash pihole blacklist --wild youtube.com # enableyt.sh #!/bin/bash pihole blacklist --wild --delmode youtube.com
The command works when I run it in the terminal. And I can see the output in the syslog:
May 8 23:45:01 pihole CRON: (pi) CMD (/home/pi/scripts/enableyt.sh) May 8 23:45:01 pihole CRON: (CRON) info (No MTA installed, discarding output)
But if I refresh the blacklist page in the admin web console I do not see any updates. What could I possibly be missing here?
Details about my system:
What I have changed since installing Pi-hole: