Skip to content

Commit

Permalink
Merge pull request #4791 from pi-hole/master
Browse files Browse the repository at this point in the history
sync: master to development
  • Loading branch information
yubiuser committed Jul 7, 2022
2 parents 6204698 + a28d691 commit edc808e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -2809,6 +2814,7 @@ 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

Expand Down

0 comments on commit edc808e

Please sign in to comment.