Check if any list.* files exist from previous installation, if they do delete them.
This commit is contained in:
parent
03277899ca
commit
bc51f88805
|
@ -271,6 +271,15 @@ installCron(){
|
||||||
$SUDO curl -o /etc/cron.d/pihole https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/pihole.cron
|
$SUDO curl -o /etc/cron.d/pihole https://raw.githubusercontent.com/jacobsalmela/pi-hole/master/advanced/pihole.cron
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tidyEtcPihole()
|
||||||
|
{
|
||||||
|
if ls /etc/pihole/list* 1> /dev/null 2>&1; then
|
||||||
|
echo "Cleaning up previous install"
|
||||||
|
$SUDO rm /etc/pihole/list.*
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
installPihole()
|
installPihole()
|
||||||
{
|
{
|
||||||
installDependencies
|
installDependencies
|
||||||
|
@ -284,6 +293,7 @@ installConfigs
|
||||||
installWebAdmin
|
installWebAdmin
|
||||||
installPiholeWeb
|
installPiholeWeb
|
||||||
installCron
|
installCron
|
||||||
|
tidyEtcPihole
|
||||||
$SUDO /usr/local/bin/gravity.sh
|
$SUDO /usr/local/bin/gravity.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue