jacklul / pihole-updatelists

Update Pi-hole's lists from remote sources easily
MIT License
1.42k stars 82 forks source link

Another way to add # in front of the update Gravity command in crontab #117

Closed slyfox1186 closed 2 years ago

slyfox1186 commented 2 years ago

Here is a good way to make sure the default entry to update gravity stays commented out.

Just add/append this to /etc/crontab

# Disable Pi-hole's default update gravity command for jacklul's script to take over
* * * * *   root    sed -i 's/29 4   \* \* 7   root/#29 4   \* \* 7   root/g' /etc/cron.d/pihole
jacklul commented 2 years ago

I believe the minutes are randomized (or used to be?) so it won't work for everyone

slyfox1186 commented 2 years ago

If that is true the you are correct.

On Sat, Sep 10, 2022 at 8:13 AM jacklul @.***> wrote:

I believe the minutes are randomized (or used to be?) so it won't work for everyone

— Reply to this email directly, view it on GitHub https://github.com/jacklul/pihole-updatelists/issues/117#issuecomment-1242716352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI7VCU37PY2XYY5RXZC5VRLV5R3QDANCNFSM6AAAAAAQJJWTKQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Regards,

Jeff