mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-10 16:10:56 +00:00
Merge pull request #205 from PromoFaux/InstallScript
Clean /etc/pihole/list.* during `basic-install.sh` to set a baseline for install procedures. Fixes #195. Submitted by @PromoFaux.
This commit is contained in:
commit
7dfd9f0378
@ -271,6 +271,15 @@ installCron(){
|
||||
$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()
|
||||
{
|
||||
installDependencies
|
||||
@ -284,6 +293,7 @@ installConfigs
|
||||
installWebAdmin
|
||||
installPiholeWeb
|
||||
installCron
|
||||
tidyEtcPihole
|
||||
$SUDO /usr/local/bin/gravity.sh
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user