Remove remaining hard-coded FTL log paths

Signed-off-by: casperklein <casperklein@users.noreply.github.com>
This commit is contained in:
casperklein
2025-10-28 01:21:56 +01:00
parent 817144cda0
commit bc65f173aa

View File

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