mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-19 18:08:35 +00:00
Don't use hard-coded FTL.log path
Signed-off-by: yubiuser <github@yubiuser.dev>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user