Skip to content

Commit 8f7f088

Browse files
committed
Add /usr/sbin to cronjob PATH
Signed-off-by: DL6ER <[email protected]>
1 parent 17aabf2 commit 8f7f088

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

advanced/Templates/pihole.cron

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
# early morning. Download any updates from the adlists
1919
# Squash output to log, then splat the log to stdout on error to allow for
2020
# standard crontab job error handling.
21-
59 1 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
21+
59 1 * * 7 root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
2222

2323
# Pi-hole: Flush the log daily at 00:00
2424
# The flush script will use logrotate if available
2525
# parameter "once": logrotate only once (default is twice)
2626
# parameter "quiet": don't print messages
27-
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
27+
00 00 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole flush once quiet
2828

2929
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate
3030

3131
# Pi-hole: Grab local version and branch every 10 minutes
32-
*/10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
32+
*/10 * * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker local
3333

3434
# Pi-hole: Grab remote version every 24 hours
35-
59 17 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
36-
@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
35+
59 17 * * * root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote
36+
@reboot root PATH="$PATH:/usr/sbin:/usr/local/bin/" pihole updatechecker remote reboot

0 commit comments

Comments
 (0)