Merge pull request #1924 from pi-hole/try_again

Don't use hard-coded FTL.log path
This commit is contained in:
Adam Warner
2025-10-26 13:54:15 +00:00
committed by GitHub

View File

@@ -70,13 +70,16 @@ start() {
# We need the PID of the capsh process so that we can wait for it to finish
CAPSH_PID=$!
# Get the FTL log file path from the config
FTLlogFile=$(getFTLConfigValue files.log.ftl)
# Wait until the log file exists before continuing
while [ ! -f /var/log/pihole/FTL.log ]; do
while [ ! -f "${FTLlogFile}" ]; do
sleep 0.5
done
# Wait until the FTL log contains the "FTL started" message before continuing
while ! grep -q '########## FTL started' /var/log/pihole/FTL.log; do
while ! grep -q '########## FTL started' "${FTLlogFile}"; do
sleep 0.5
done