Fix logrotation: manual flushing should be done twice, but automated rotation at midnight should only be done *once*!

This commit is contained in:
DL6ER 2017-05-17 12:44:35 +02:00
parent ed04be5faa
commit 4e2c6a7b8e
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
3 changed files with 28 additions and 12 deletions

View file

@ -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