mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Move existing log files
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
0961103933
commit
110e752552
1 changed files with 8 additions and 0 deletions
|
@ -2528,6 +2528,14 @@ main() {
|
||||||
# If no setting was found, default to 0
|
# If no setting was found, default to 0
|
||||||
PRIVACY_LEVEL="${PRIVACY_LEVEL:-0}"
|
PRIVACY_LEVEL="${PRIVACY_LEVEL:-0}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If this is an update from a previous Pi-hole installation
|
||||||
|
# we need to move any existing `pihole*` logs from `/var/log` to `/var/log/pihole`
|
||||||
|
# if /var/log/pihole.log is not a symlink (set durign FTL startup) move the files
|
||||||
|
# can be removed with Pi-hole v6.0
|
||||||
|
if [ -f /var/log/pihole.log ] && [ ! -L /var/log/pihole.log ]; then
|
||||||
|
mv /var/log/pihole*.* /var/log/pihole/ 2>/dev/null
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
# Download or update the scripts by updating the appropriate git repos
|
# Download or update the scripts by updating the appropriate git repos
|
||||||
clone_or_update_repos
|
clone_or_update_repos
|
||||||
|
|
Loading…
Reference in a new issue