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:
commit
04abc4dacd
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user