From 2d879730d2195245b165000608873c08c3d4e7f3 Mon Sep 17 00:00:00 2001 From: yubiuser Date: Sun, 26 Oct 2025 14:10:42 +0100 Subject: [PATCH] Don't use hard-coded FTL.log path Signed-off-by: yubiuser --- src/start.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/start.sh b/src/start.sh index 7036cee..a6fa83b 100644 --- a/src/start.sh +++ b/src/start.sh @@ -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