mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-24 00:00:14 +00:00
Merge pull request #1174 from pi-hole/tweak/logrotate_insecure_directory
Improve logrotate support
This commit is contained in:
commit
be5fa22b6f
3 changed files with 22 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue