Commit 2e160bb9 authored by Min RK's avatar Min RK

launch single-user entrypoint if JUPYTERHUB_API_TOKEN is defined

DockerSpawner sets certain environment variables, so assume jupyterhub entrypoint when defined
parent 0805573e
......@@ -4,4 +4,9 @@
set -e
. /usr/local/bin/start.sh jupyter notebook $*
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
# launched by JupyterHub, use single-user entrypoint
exec /usr/local/bin/start-singleuser.sh $*
else
. /usr/local/bin/start.sh jupyter notebook $*
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment