Test if /etc/pihole/adlists.default exists

This commit is contained in:
DL6ER 2016-12-23 16:00:48 +01:00
parent ef1ce66793
commit 6b7b0e0eb3
No known key found for this signature in database
GPG key ID: BB8EC0BC77973A30

View file

@ -829,6 +829,10 @@ runGravity() {
echo "::: Cleaning up previous install (preserving whitelist/blacklist)"
rm /etc/pihole/list.*
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"
{ /opt/pihole/gravity.sh; }
}