Skip to content

Commit 8756dfc

Browse files
authored
Merge pull request #1927 from pi-hole/development
development -> master for tagging
2 parents ad95d1c + 656877a commit 8756dfc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/editorconfig.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0
1313

1414
- name: Get editorconfig-checker
15-
uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 # tag v2. is really out of date
15+
uses: editorconfig-checker/action-editorconfig-checker@4b6cd6190d435e7e084fb35e36a096e98506f7b9 #v2.1.0
1616

1717
- name: Run editorconfig-checker
1818
run: editorconfig-checker

src/start.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@ 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

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
81+
# Wait until the FTL log contains the "FTL started" message before continuing
82+
while ! grep -q '########## FTL started' "${FTLlogFile}"; do
83+
sleep 0.5
84+
done
8585

8686
pihole updatechecker
8787
local versionsOutput

0 commit comments

Comments
 (0)