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

Merge pull request #4804 from pi-hole/mkdir

Clean consecutive mkdir
This commit is contained in:
yubiuser 2022-07-08 23:38:53 +02:00 committed by GitHub
commit 7d5f6c8331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2797,8 +2797,7 @@ main() {
stop_service pihole-FTL &> /dev/null
if [ ! -d /var/log/pihole/ ]; then
mkdir /var/log/pihole/
chmod 0775 /var/log/pihole/
mkdir -m 0755 /var/log/pihole/
fi
# Special handling for pihole-FTL.log -> pihole/FTL.log
@ -2814,7 +2813,6 @@ main() {
# Remaining log files
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