This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
PATH=$PATH:/usr/local/bin | |
curl -s "https://v.firebog.net/hosts/lists.php?type=tick"|while read adl; do echo "DELETE from adlist where address = '$adl';"; done|sqlite3 /etc/pihole/gravity.db | |
echo "delete from adlist where comment = 'auto-tick';"|sqlite3 /etc/pihole/gravity.db | |
curl -s "https://v.firebog.net/hosts/lists.php?type=tick"|while read adl; do echo "insert into adlist (address, enabled, comment) values ('$adl', 1, 'auto-tick');"; done|sqlite3 /etc/pihole/gravity.db | |
pihole -g |