We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 817144c + bc65f17 commit 1ada882Copy full SHA for 1ada882
src/start.sh
@@ -93,9 +93,9 @@ start() {
93
if [ "${TAIL_FTL_LOG:-1}" -eq 1 ]; then
94
# Start tailing the FTL log from the most recent "FTL Started" message
95
# Get the line number
96
- 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)
97
# Start the tail from the line number and background it
98
- tail --follow=name -n +"${startFrom}" /var/log/pihole/FTL.log &
+ tail --follow=name -n +"${startFrom}" "${FTLlogFile}" &
99
else
100
echo " [i] FTL log output is disabled. Remove the Environment variable TAIL_FTL_LOG, or set it to 1 to enable FTL log output."
101
fi
0 commit comments