Corrected path

This commit is contained in:
DL6ER 2017-01-12 21:01:52 +01:00
parent 6b6fbc4709
commit 3a8a936575
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@
echo -n "::: Flushing /var/log/pihole.log ..." echo -n "::: Flushing /var/log/pihole.log ..."
# Test if logrotate is available on this system # Test if logrotate is available on this system
if command -v /usr/sbin/logrotate &> /dev/null; then if command -v /usr/sbin/logrotate &> /dev/null; then
/usr/sbin/logrotate --force /etc/.pihole/logrotate /usr/sbin/logrotate --force /etc/.pihole/advanced/logrotate
else else
echo " " > /var/log/pihole.log echo " " > /var/log/pihole.log
fi fi

View file

@ -26,4 +26,4 @@
# The flush script will use logrotate if available # 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
@reboot /usr/sbin/logrotate /etc/.pihole/logrotate @reboot /usr/sbin/logrotate /etc/.pihole/advanced/logrotate