kopia lustrzana https://github.com/jupyterhub/repo2docker
Only chmod u+x if not already executable, in case user is not owner but file is already g/o+x
rodzic
057c837a75
commit
146db2f4f0
|
@ -3,7 +3,9 @@
|
|||
# we use a login shell to get a fully configured shell environment
|
||||
# (e.g. sourcing /etc/profile.d, ~/.bashrc, and friends)
|
||||
if [[ ! -z "${R2D_ENTRYPOINT:-}" ]]; then
|
||||
chmod u+x "$R2D_ENTRYPOINT"
|
||||
if [[ ! -x "$R2D_ENTRYPOINT" ]]; then
|
||||
chmod u+x "$R2D_ENTRYPOINT"
|
||||
fi
|
||||
exec "$R2D_ENTRYPOINT" "$@"
|
||||
else
|
||||
exec "$@"
|
||||
|
|
Ładowanie…
Reference in New Issue