We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9376ac5 commit 50a7b94Copy full SHA for 50a7b94
init-plain/usr/local/bin/entrypoint.sh
@@ -1,13 +1,16 @@
1
#!/bin/bash
2
set -e
3
4
-for x in $(find /opt/qnib/entry/ -type f -perm +111 |sort);do
5
- echo "> execute entrypoint '${x}'"
6
- "${x}"
7
-done
+if [ "${QNIB_NO_FORK}" != "true" ];then
+ for x in $(find /opt/qnib/entry/ -type f -perm +111 |sort);do
+ echo "> execute entrypoint '${x}'"
+ "${x}"
8
+ done
9
-if [ "X${ENTRY_USER}" != "X" ];then
10
- exec su -s /bin/bash -c "$@" ${ENTRY_USER}
+ if [ "X${ENTRY_USER}" != "X" ];then
11
+ exec su -s /bin/bash -c "$@" ${ENTRY_USER}
12
+ else
13
+ exec "$@"
14
else
- exec "$@"
15
16
fi
0 commit comments