mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-11 14:34:44 +00:00
Move copying of adlists.default to gravity.sh
This commit is contained in:
parent
ef99fe2d18
commit
701ae06e4a
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue