Skip to content

Commit 40f0b18

Browse files
use /opt/entry/ instead of /opt/qnib/entry/
1 parent a2a95ab commit 40f0b18

File tree

4 files changed

+10
-1
lines changed

4 files changed

+10
-1
lines changed
File renamed without changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
### In case the pre-run scripts create a healthcheck overwrite, it should be removed
4+
if [[ "X${HEALTHCHECK_DIR}" != "X" ]] && [[ -f ${HEALTHCHECK_DIR}/force_true ]];then
5+
echo "> As a final step in the prerun, remove the force_true healthcheck"
6+
rm -f ${HEALTHCHECK_DIR}/force_true
7+
fi

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22
QUIET=${QUIET_ENTRYPOINT:-false}
3+
ENTRYPOINTS_DIR=${ENTRYPOINTS_DIR:-/opt/entry/}
4+
35
function qecho() {
46
if [[ "X${QUIET}" != "Xtrue" ]];then
57
echo $@
@@ -9,7 +11,7 @@ qecho "[II] qnib/init-plain script v0.4.22"
911
set -e
1012

1113
if [[ -z ${SKIP_ENTRYPOINTS} ]];then
12-
for x in $(find ${ENTRYPOINTS_DIR:-/opt/qnib/entry/} -type f -perm /u+x |sort);do
14+
for x in $(find ${ENTRYPOINTS_DIR} -type f -perm /u+x |sort);do
1315
qecho "> execute entrypoint '${x}'"
1416
if [[ "$x" == *.env ]];then
1517
source ${x}

0 commit comments

Comments
 (0)