Skip to content

Commit ffd3cbb

Browse files
committed
Revert FTL wait-for changes
Signed-off-by: Adam Warner <[email protected]>
1 parent f6e2d7c commit ffd3cbb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/start.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,10 @@ start() {
7575
sleep 0.5
7676
done
7777

78-
# Wait until the FTL log contains the "FTL started" message before continuing, timeout after 10 seconds
79-
# exit if we do not find it
80-
pihole-FTL wait-for '########## FTL started' /var/log/pihole/FTL.log 10 0 > /dev/null
81-
if [ $? -ne 0 ]; then
82-
echo " [✗] FTL did not start - stopping container"
83-
exit 1
84-
fi
78+
# Wait until the FTL log contains the "FTL started" message before continuing
79+
while ! grep -q '########## FTL started' /var/log/pihole/FTL.log; do
80+
sleep 0.5
81+
done
8582

8683
pihole updatechecker
8784
local versionsOutput

0 commit comments

Comments
 (0)