From 3a8a936575d959ce8faae95661d17fd981c0c344 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 12 Jan 2017 21:01:52 +0100 Subject: [PATCH] Corrected path --- advanced/Scripts/piholeLogFlush.sh | 2 +- advanced/pihole.cron | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/piholeLogFlush.sh b/advanced/Scripts/piholeLogFlush.sh index 5f16aaee..64833b64 100755 --- a/advanced/Scripts/piholeLogFlush.sh +++ b/advanced/Scripts/piholeLogFlush.sh @@ -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 diff --git a/advanced/pihole.cron b/advanced/pihole.cron index 1c3f9581..8a865540 100644 --- a/advanced/pihole.cron +++ b/advanced/pihole.cron @@ -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