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 a11d539 commit 7b71d2bCopy full SHA for 7b71d2b
bin/entrypoint
@@ -26,7 +26,18 @@ fi
26
27
# Execute user startup script if it exists
28
if [[ -e ${USER_STARTUP_SCRIPT} ]]; then
29
- bash ${USER_STARTUP_SCRIPT}
+ __ret=0
30
+ if [[ -x ${USER_STARTUP_SCRIPT} ]]; then
31
+ ${USER_STARTUP_SCRIPT}
32
+ __ret=$?
33
+ else
34
+ chmod a+x ${USER_STARTUP_SCRIPT} || ls -l ${USER_STARTUP_SCRIPT}
35
36
37
+ fi
38
+ if [[ ${__ret} -ne 0 ]]; then
39
+ echo "WARN: User startup script exited with error code ${__ret}" >&2
40
41
fi
42
43
# Redirect output to /dev/null unless in debug mode
0 commit comments