mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-22 23:30:13 +00:00
Fix logrotation: manual flushing should be done twice, but automated rotation at midnight should only be done *once*!
This commit is contained in:
parent
ed04be5faa
commit
4e2c6a7b8e
3 changed files with 28 additions and 12 deletions
|
@ -24,6 +24,6 @@
|
|||
# Pi-hole: Flush the log daily at 00:00 so it doesn't get out of control
|
||||
# Stats will be viewable in the Web interface thanks to the cron job above
|
||||
# The flush script will use logrotate if available
|
||||
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush
|
||||
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once
|
||||
|
||||
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue