File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- echo " [II] qnib/init-plain script v0.4.20"
2
+ QUIET=${QUIET_ENTRYPOINT:- false}
3
+ function qecho() {
4
+ if [[ " X${QUIET} " != " Xtrue" ]]; then
5
+ echo $@
6
+ fi
7
+ }
8
+ qecho " [II] qnib/init-plain script v0.4.20"
3
9
set -e
4
10
5
11
if [[ -z ${SKIP_ENTRYPOINTS} ]]; then
6
12
for x in $( find ${ENTRYPOINTS_DIR:-/ opt/ qnib/ entry/ } -type f -perm /u+x | sort) ; do
7
- echo " > execute entrypoint '${x} '"
13
+ qecho " > execute entrypoint '${x} '"
8
14
if [[ " $x " == * .env ]]; then
9
15
source ${x}
10
16
else
@@ -14,9 +20,9 @@ if [[ -z ${SKIP_ENTRYPOINTS} ]];then
14
20
fi
15
21
16
22
if [ " X${ENTRY_USER} " != " X" ]; then
17
- echo " > execute CMD as user '${ENTRY_USER} '"
23
+ qecho " > execute CMD as user '${ENTRY_USER} '"
18
24
exec gosu ${ENTRY_USER} /bin/bash -c " $@ "
19
25
else
20
- echo " > execute CMD '$@ '"
26
+ qecho " > execute CMD '$@ '"
21
27
exec " $@ "
22
28
fi
You can’t perform that action at this time.
0 commit comments