The issue I am facing:
The pihole fails to whitelist a few sites when under the control of a cron job. The same cron job also removes sites from the whitelist after a delay ok.
The same Bash script works as it should.
The cron entry 1-59/10 * * * * root /root/tloop.sh
The bash script as it is so far as it stands
.
pihole -w -nr site1.com >> log.txt
sleep 1
pihole -w -nr site2.com >> log.txt
sleep 1
pihole -w -nr site3.com >> log.txt
sleep 120
pihole -w -nr -d site1.com >> log.txt
sleep 1
pihole -w -nr -d site2.com >> log.txt
sleep 1
pihole -w -nr -d site3.com >> log.txt
sleep 1
Details about my system:
Debian 11
More info.
https://discourse.pi-hole.net/t/have-a-whitelist-scheduler-that-runs-in-a-loop/57299
I am trying to make it work