mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-25 06:10:20 +00:00
Always create the log target directory before any movements
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
04abc4dacd
commit
48d5d6bed2
1 changed files with 5 additions and 0 deletions
|
@ -2796,6 +2796,11 @@ main() {
|
||||||
|
|
||||||
stop_service pihole-FTL &> /dev/null
|
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
|
# Special handling for pihole-FTL.log -> pihole/FTL.log
|
||||||
if [ -f /var/log/pihole-FTL.log ] && [ ! -L /var/log/pihole-FTL.log ]; then
|
if [ -f /var/log/pihole-FTL.log ] && [ ! -L /var/log/pihole-FTL.log ]; then
|
||||||
# /var/log/pihole-FTL.log -> /var/log/pihole/FTL.log
|
# /var/log/pihole-FTL.log -> /var/log/pihole/FTL.log
|
||||||
|
|
Loading…
Reference in a new issue