Skip to content

Commit 2f660d2

Browse files
add healthcheck dir
1 parent 90f3f9d commit 2f660d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
echo "[II] qnib/init-plain script v0.4.19"
3+
HEALTHCHECK_DIR=${HEALTHCHECK_DIR:-/opt/qnib/healthchecks/}
4+
set -e
5+
6+
if [[ ! -d ${HEALTHCHECK_DIR} ]];then
7+
echo "> No healthcheck dir found '${HEALTHCHECK_DIR}'"
8+
exit 0
9+
fi
10+
while read -r line;do
11+
echo "> execute healthcheck '${x}'"
12+
${x}
13+
done <<< $(find ${HEALTHCHECK_DIR} -type f -perm /u+x |sort)
14+
exit 0

0 commit comments

Comments
 (0)