mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Clean consecutive mkdir
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
edc808ee89
commit
3d8672bc59
@ -2797,8 +2797,7 @@ main() {
|
|||||||
stop_service pihole-FTL &> /dev/null
|
stop_service pihole-FTL &> /dev/null
|
||||||
|
|
||||||
if [ ! -d /var/log/pihole/ ]; then
|
if [ ! -d /var/log/pihole/ ]; then
|
||||||
mkdir /var/log/pihole/
|
mkdir -m 0755 /var/log/pihole/
|
||||||
chmod 0775 /var/log/pihole/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Special handling for pihole-FTL.log -> pihole/FTL.log
|
# Special handling for pihole-FTL.log -> pihole/FTL.log
|
||||||
@ -2814,7 +2813,6 @@ 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