Create new log directory

Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
Dan Schaper 2022-07-07 12:12:53 -07:00
parent 37889f27de
commit fd41801977
No known key found for this signature in database
GPG key ID: 6055EE2AD4004FC0

View file

@ -2619,6 +2619,7 @@ main() {
stop_service pihole-FTL &> /dev/null
if [ -f /var/log/pihole.log ] && [ ! -L /var/log/pihole.log ]; then
mkdir -p /var/log/pihole/
mv /var/log/pihole*.* /var/log/pihole/ 2>/dev/null
fi