From 701ae06e4aa17c89f02703e1937cdadd56825399 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Wed, 27 Jan 2016 21:14:06 +0000 Subject: [PATCH] Move copying of adlists.default to gravity.sh --- automated install/basic-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index dfe279a9..39a043d9 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -431,10 +431,9 @@ installCron(){ runGravity(){ $SUDO echo ":::" - $SUDO echo "::: Preparing to run gravity.sh to refresh hosts..." + $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 + echo "::: Cleaning up previous install (preserving whitelist/blacklist)" $SUDO rm /etc/pihole/list.* fi #Don't run as SUDO, this was causing issues