mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 22:44:44 +00:00
Test if /etc/pihole/adlists.default exists
This commit is contained in:
parent
ef1ce66793
commit
6b7b0e0eb3
1 changed files with 4 additions and 0 deletions
|
@ -829,6 +829,10 @@ runGravity() {
|
||||||
echo "::: Cleaning up previous install (preserving whitelist/blacklist)"
|
echo "::: Cleaning up previous install (preserving whitelist/blacklist)"
|
||||||
rm /etc/pihole/list.*
|
rm /etc/pihole/list.*
|
||||||
fi
|
fi
|
||||||
|
# Test if /etc/pihole/adlists.default exists
|
||||||
|
if [[ ! -e /etc/pihole/adlists.default ]]; then
|
||||||
|
cp /etc/.pihole/adlists.default /etc/pihole/adlists.default
|
||||||
|
fi
|
||||||
echo "::: Running gravity.sh"
|
echo "::: Running gravity.sh"
|
||||||
{ /opt/pihole/gravity.sh; }
|
{ /opt/pihole/gravity.sh; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue