Move copying of adlists.default to gravity.sh

This commit is contained in:
Promofaux 2016-01-27 21:14:06 +00:00
parent ef99fe2d18
commit 701ae06e4a

View file

@ -434,7 +434,6 @@ runGravity(){
$SUDO echo "::: Preparing to run gravity.sh to refresh hosts..."
if ls /etc/pihole/list* 1> /dev/null 2>&1; then
echo "::: Cleaning up previous install (preserving whitelist/blacklist)"
$SUDO cp -o /etc/.pihole/adlists.default /etc/pihole/adlists.default
$SUDO rm /etc/pihole/list.*
fi
#Don't run as SUDO, this was causing issues