Skip to content

Commit dd1df2b

Browse files
authored
Merge pull request #1924 from pi-hole/try_again
Don't use hard-coded FTL.log path
2 parents ffd3cbb + 2d87973 commit dd1df2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/start.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,16 @@ start() {
7070
# We need the PID of the capsh process so that we can wait for it to finish
7171
CAPSH_PID=$!
7272

73+
# Get the FTL log file path from the config
74+
FTLlogFile=$(getFTLConfigValue files.log.ftl)
75+
7376
# Wait until the log file exists before continuing
74-
while [ ! -f /var/log/pihole/FTL.log ]; do
77+
while [ ! -f "${FTLlogFile}" ]; do
7578
sleep 0.5
7679
done
7780

7881
# Wait until the FTL log contains the "FTL started" message before continuing
79-
while ! grep -q '########## FTL started' /var/log/pihole/FTL.log; do
82+
while ! grep -q '########## FTL started' "${FTLlogFile}"; do
8083
sleep 0.5
8184
done
8285

0 commit comments

Comments
 (0)