Hi there,
when i externally change the blacklist.txt or whitelist.txt (via a git pull
in a crontab), is there a way to tell pi-hole to reload these 2 without downloading & refreshing the entire gravity.list?
Or do i just need to pihole -g
every time?
Thanks.
jfb
February 6, 2019, 9:36am
2
When you update gravity, only the lists that have changed are downloaded. For unchanged lists, a local copy is used.
If you update black or whitelists through Pi-Hole, gravity is run as follows:
fi
reload=true
# Remove it from the current list
pihole-FTL sqlite3 -ni "${gravityDBfile}" "DELETE FROM domainlist WHERE domain = '${domain}' AND type = ${typeId};"
}
Displaylist() {
local count num_pipes domain enabled status nicedate requestedListname
requestedListname="$(GetListnameFromTypeId "${typeId}")"
data="$(pihole-FTL sqlite3 -ni "${gravityDBfile}" "SELECT domain,enabled,date_modified FROM domainlist WHERE type = ${typeId};" 2> /dev/null)"
if [[ -z $data ]]; then
echo -e "Not showing empty list"
else
echo -e "Displaying ${requestedListname}:"
count=1
while IFS= read -r line
do
# Count number of pipes seen in this line
# This is necessary because we can only detect the pipe separating the fields
1 Like
Thanks for your reply,
it seems i could also do pihole -g --skip-download --blacklist-only
, when for example updating only the blacklist.
Will test this later, thanks again.
system
Closed
February 27, 2019, 10:57am
5
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.