@@ -9,33 +9,5 @@ if [[ "${NOTEBOOK_ARGS} $*" != *"--ip="* ]]; then
99 NOTEBOOK_ARGS=" --ip=0.0.0.0 ${NOTEBOOK_ARGS} "
1010fi
1111
12- # handle some deprecated environment variables
13- # from DockerSpawner < 0.8.
14- # These won't be passed from DockerSpawner 0.9,
15- # so avoid specifying --arg=empty-string
16- if [ -n " ${NOTEBOOK_DIR} " ]; then
17- # shellcheck disable=SC2089
18- NOTEBOOK_ARGS=" --notebook-dir='${NOTEBOOK_DIR} ' ${NOTEBOOK_ARGS} "
19- fi
20- if [ -n " ${JPY_PORT} " ]; then
21- NOTEBOOK_ARGS=" --port=${JPY_PORT} ${NOTEBOOK_ARGS} "
22- fi
23- if [ -n " ${JPY_USER} " ]; then
24- NOTEBOOK_ARGS=" --user=${JPY_USER} ${NOTEBOOK_ARGS} "
25- fi
26- if [ -n " ${JPY_COOKIE_NAME} " ]; then
27- NOTEBOOK_ARGS=" --cookie-name=${JPY_COOKIE_NAME} ${NOTEBOOK_ARGS} "
28- fi
29- if [ -n " ${JPY_BASE_URL} " ]; then
30- NOTEBOOK_ARGS=" --base-url=${JPY_BASE_URL} ${NOTEBOOK_ARGS} "
31- fi
32- if [ -n " ${JPY_HUB_PREFIX} " ]; then
33- NOTEBOOK_ARGS=" --hub-prefix=${JPY_HUB_PREFIX} ${NOTEBOOK_ARGS} "
34- fi
35- if [ -n " ${JPY_HUB_API_URL} " ]; then
36- NOTEBOOK_ARGS=" --hub-api-url=${JPY_HUB_API_URL} ${NOTEBOOK_ARGS} "
37- fi
38- NOTEBOOK_BIN=" jupyterhub-singleuser"
39-
40- # shellcheck disable=SC1091,SC2086,SC2090
41- . /usr/local/bin/start.sh " ${NOTEBOOK_BIN} " ${NOTEBOOK_ARGS} " $@ "
12+ # shellcheck disable=SC1091,SC2086
13+ . /usr/local/bin/start.sh jupyterhub-singleuser ${NOTEBOOK_ARGS} " $@ "
0 commit comments