Skip to content

Commit e8ff46c

Browse files
author
Christian Kniep
committed
source entrypoints which ends on .env
1 parent 9376ac5 commit e8ff46c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ set -e
33

44
for x in $(find /opt/qnib/entry/ -type f -perm +111 |sort);do
55
echo "> execute entrypoint '${x}'"
6-
"${x}"
6+
if [[ "$x" == *.env ]];then
7+
source ${x}
8+
else
9+
"${x}"
10+
fi
711
done
812

913
if [ "X${ENTRY_USER}" != "X" ];then

0 commit comments

Comments
 (0)