mirror of
https://github.com/bluxmit/alnoda-workspaces.git
synced 2024-05-15 19:42:16 +12:00
20 lines
664 B
Bash
20 lines
664 B
Bash
|
#!/bin/bash
|
||
|
# Copyright (c) Jupyter Development Team.
|
||
|
# Distributed under the terms of the Modified BSD License.
|
||
|
|
||
|
set -e
|
||
|
|
||
|
wrapper=""
|
||
|
if [[ "${RESTARTABLE}" == "yes" ]]; then
|
||
|
wrapper="run-one-constantly"
|
||
|
fi
|
||
|
|
||
|
if [[ ! -z "${JUPYTERHUB_API_TOKEN}" ]]; then
|
||
|
# launched by JupyterHub, use single-user entrypoint
|
||
|
exec /usr/local/bin/start-singleuser.sh "$@"
|
||
|
elif [[ ! -z "${JUPYTER_ENABLE_LAB}" ]]; then
|
||
|
. /usr/local/bin/start.sh $wrapper jupyter lab "$@"
|
||
|
else
|
||
|
echo "WARN: Jupyter Notebook deprecation notice https://github.com/jupyter/docker-stacks#jupyter-notebook-deprecation-notice."
|
||
|
. /usr/local/bin/start.sh $wrapper jupyter notebook "$@"
|
||
|
fi
|