mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
adlists.default no longer used. No need to reference it.
Use --force switch of gravity to force the cache refresh Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
f14184df30
commit
e61d8e4fb8
1 changed files with 1 additions and 15 deletions
|
@ -1378,22 +1378,8 @@ installCron() {
|
||||||
# Gravity is a very important script as it aggregates all of the domains into a single HOSTS formatted list,
|
# Gravity is a very important script as it aggregates all of the domains into a single HOSTS formatted list,
|
||||||
# which is what Pi-hole needs to begin blocking ads
|
# which is what Pi-hole needs to begin blocking ads
|
||||||
runGravity() {
|
runGravity() {
|
||||||
echo ""
|
|
||||||
echo -e " ${INFO} Preparing to run gravity.sh to refresh hosts..."
|
|
||||||
# If cached lists exist,
|
|
||||||
if ls /etc/pihole/list* 1> /dev/null 2>&1; then
|
|
||||||
echo -e " ${INFO} Cleaning up previous install (preserving whitelist/blacklist)"
|
|
||||||
# remove them
|
|
||||||
rm /etc/pihole/list.*
|
|
||||||
fi
|
|
||||||
# If the default ad lists file exists,
|
|
||||||
if [[ ! -e /etc/pihole/adlists.default ]]; then
|
|
||||||
# copy it over from the local repo
|
|
||||||
cp ${PI_HOLE_LOCAL_REPO}/adlists.default /etc/pihole/adlists.default
|
|
||||||
fi
|
|
||||||
echo -e " ${INFO} Running gravity.sh"
|
|
||||||
# Run gravity in the current shell
|
# Run gravity in the current shell
|
||||||
{ /opt/pihole/gravity.sh; }
|
{ /opt/pihole/gravity.sh --force; }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check if the pihole user exists and create if it does not
|
# Check if the pihole user exists and create if it does not
|
||||||
|
|
Loading…
Reference in a new issue