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

Merge pull request #4794 from pi-hole/fix/mkdir_always

Always create log directory if it doesn't exist
This commit is contained in:
Dan Schaper 2022-07-07 13:41:45 -07:00 committed by GitHub
commit ef71ca05a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2796,6 +2796,11 @@ main() {
stop_service pihole-FTL &> /dev/null
if [ -d /var/log/pihole/ ]; then
mkdir /var/log/pihole/
chmod 0775 /var/log/pihole/
fi
# Special handling for pihole-FTL.log -> pihole/FTL.log
if [ -f /var/log/pihole-FTL.log ] && [ ! -L /var/log/pihole-FTL.log ]; then
# /var/log/pihole-FTL.log -> /var/log/pihole/FTL.log