File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments