leave system cron alone

Taking JoshKastang’s idea from #153, the system cron file will be left
alone and the pihole.cron gets its own.
This commit is contained in:
jacobsalmela
2016-01-16 13:48:29 -06:00
parent 7c6ef0cfd0
commit 5d608a2db5
2 changed files with 5 additions and 17 deletions

View File

@@ -260,8 +260,7 @@ $SUDO curl -o /var/www/html/pihole/index.html https://raw.githubusercontent.com/
}
installCron(){
$SUDO mv /etc/crontab /etc/crontab.orig
$SUDO curl -o /etc/crontab 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
}
installPihole()