mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Merge pull request #2470 from jeremysherriff/patch-1
Silence updateGravity cron job unless errors occur
This commit is contained in:
commit
49b8ad7e94
2 changed files with 4 additions and 2 deletions
|
@ -16,7 +16,9 @@
|
|||
|
||||
# Pi-hole: Update the ad sources once a week on Sunday at a random time in the
|
||||
# early morning. Download any updates from the adlists
|
||||
59 1 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
|
||||
# Squash output to log, then splat the log to stdout on error to allow for
|
||||
# standard crontab job error handling.
|
||||
59 1 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
|
||||
|
||||
# Pi-hole: Flush the log daily at 00:00
|
||||
# The flush script will use logrotate if available
|
||||
|
|
2
pihole
2
pihole
|
@ -80,7 +80,7 @@ reconfigurePiholeFunc() {
|
|||
|
||||
updateGravityFunc() {
|
||||
"${PI_HOLE_SCRIPT_DIR}"/gravity.sh "$@"
|
||||
exit 0
|
||||
exit $?
|
||||
}
|
||||
|
||||
queryFunc() {
|
||||
|
|
Loading…
Reference in a new issue