1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 23:08:07 +00:00

Merge pull request #4792 from pi-hole/fix/mkdir_logs

Create new log directory
This commit is contained in:
Adam Warner 2022-07-07 20:18:18 +01:00 committed by GitHub
commit 04abc4dacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2809,6 +2809,7 @@ main() {
# Remaining log files # Remaining log files
if [ -f /var/log/pihole.log ] && [ ! -L /var/log/pihole.log ]; then 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 mv /var/log/pihole*.* /var/log/pihole/ 2>/dev/null
fi fi