Skip to content

Commit bc65f17

Browse files
committed
Remove remaining hard-coded FTL log paths
Signed-off-by: casperklein <[email protected]>
1 parent 817144c commit bc65f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ start() {
9393
if [ "${TAIL_FTL_LOG:-1}" -eq 1 ]; then
9494
# Start tailing the FTL log from the most recent "FTL Started" message
9595
# Get the line number
96-
startFrom=$(grep -n '########## FTL started' /var/log/pihole/FTL.log | tail -1 | cut -d: -f1)
96+
startFrom=$(grep -n '########## FTL started' "${FTLlogFile}" | tail -1 | cut -d: -f1)
9797
# Start the tail from the line number and background it
98-
tail --follow=name -n +"${startFrom}" /var/log/pihole/FTL.log &
98+
tail --follow=name -n +"${startFrom}" "${FTLlogFile}" &
9999
else
100100
echo " [i] FTL log output is disabled. Remove the Environment variable TAIL_FTL_LOG, or set it to 1 to enable FTL log output."
101101
fi

0 commit comments

Comments
 (0)