Merge pull request #1174 from pi-hole/tweak/logrotate_insecure_directory

Improve logrotate support
This commit is contained in:
Dan Schaper 2017-01-27 11:18:06 -08:00 committed by GitHub
commit be5fa22b6f
3 changed files with 22 additions and 2 deletions

View file

@ -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/advanced/logrotate
/usr/sbin/logrotate --force /etc/pihole/logrotate
else
echo " " > /var/log/pihole.log
fi