Corrected path

pull/1130/head
DL6ER 7 years ago
parent 6b6fbc4709
commit 3a8a936575
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD

@ -13,7 +13,7 @@
echo -n "::: Flushing /var/log/pihole.log ..."
# Test if logrotate is available on this system
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
echo " " > /var/log/pihole.log
fi

@ -26,4 +26,4 @@
# The flush script will use logrotate if available
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

Loading…
Cancel
Save