Skip to content

Commit 7cb2508

Browse files
fix healthcheck script
1 parent 591d16f commit 7cb2508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init-plain/usr/local/bin/healthcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ if [[ "X${ALLOW_HEALTHCHECK_OVERWRITE}" == "Xtrue" ]] && [[ -f ${HEALTHCHECK_DIR
1212
echo ">> INITIALIZATION PHASE! Until HC successed the first time, it will be overwritten to be OK."
1313
set +e
1414
fi
15-
while read -r line;do
16-
echo "> execute healthcheck '${x}'"
17-
${x}
15+
while read -r LINE;do
16+
echo "> execute healthcheck '${LINE}'"
17+
${LINE}
1818
EC=$?
1919
if [[ ${EC} -ne 0 ]];then
2020
echo ">> Healthcheck failed, but as '${HEALTHCHECK_DIR}/force_true' is set it will be ignored"

0 commit comments

Comments
 (0)