mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-09 19:12:59 +00:00

DockerSpawner sets certain environment variables, so assume jupyterhub entrypoint when defined
13 lines
324 B
Bash
Executable File
13 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
|
|
set -e
|
|
|
|
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
|