|
6 | 6 |
|
7 | 7 | # set default ip to 0.0.0.0 |
8 | 8 | if [[ "$NOTEBOOK_ARGS $@" != *"--ip="* ]]; then |
9 | | - NOTEBOOK_ARGS="--ip=0.0.0.0 $NOTEBOOK_ARGS" |
| 9 | + NOTEBOOK_ARGS="--ip=0.0.0.0 $NOTEBOOK_ARGS" |
10 | 10 | fi |
11 | 11 |
|
12 | 12 | # handle some deprecated environment variables |
13 | 13 | # from DockerSpawner < 0.8. |
14 | 14 | # These won't be passed from DockerSpawner 0.9, |
15 | 15 | # so avoid specifying --arg=empty-string |
16 | 16 | if [ ! -z "$NOTEBOOK_DIR" ]; then |
17 | | - NOTEBOOK_ARGS="--notebook-dir='$NOTEBOOK_DIR' $NOTEBOOK_ARGS" |
| 17 | + NOTEBOOK_ARGS="--notebook-dir='$NOTEBOOK_DIR' $NOTEBOOK_ARGS" |
18 | 18 | fi |
19 | 19 | if [ ! -z "$JPY_PORT" ]; then |
20 | | - NOTEBOOK_ARGS="--port=$JPY_PORT $NOTEBOOK_ARGS" |
| 20 | + NOTEBOOK_ARGS="--port=$JPY_PORT $NOTEBOOK_ARGS" |
21 | 21 | fi |
22 | 22 | if [ ! -z "$JPY_USER" ]; then |
23 | | - NOTEBOOK_ARGS="--user=$JPY_USER $NOTEBOOK_ARGS" |
| 23 | + NOTEBOOK_ARGS="--user=$JPY_USER $NOTEBOOK_ARGS" |
24 | 24 | fi |
25 | 25 | if [ ! -z "$JPY_COOKIE_NAME" ]; then |
26 | | - NOTEBOOK_ARGS="--cookie-name=$JPY_COOKIE_NAME $NOTEBOOK_ARGS" |
| 26 | + NOTEBOOK_ARGS="--cookie-name=$JPY_COOKIE_NAME $NOTEBOOK_ARGS" |
27 | 27 | fi |
28 | 28 | if [ ! -z "$JPY_BASE_URL" ]; then |
29 | | - NOTEBOOK_ARGS="--base-url=$JPY_BASE_URL $NOTEBOOK_ARGS" |
| 29 | + NOTEBOOK_ARGS="--base-url=$JPY_BASE_URL $NOTEBOOK_ARGS" |
30 | 30 | fi |
31 | 31 | if [ ! -z "$JPY_HUB_PREFIX" ]; then |
32 | | - NOTEBOOK_ARGS="--hub-prefix=$JPY_HUB_PREFIX $NOTEBOOK_ARGS" |
| 32 | + NOTEBOOK_ARGS="--hub-prefix=$JPY_HUB_PREFIX $NOTEBOOK_ARGS" |
33 | 33 | fi |
34 | 34 | if [ ! -z "$JPY_HUB_API_URL" ]; then |
35 | | - NOTEBOOK_ARGS="--hub-api-url=$JPY_HUB_API_URL $NOTEBOOK_ARGS" |
| 35 | + NOTEBOOK_ARGS="--hub-api-url=$JPY_HUB_API_URL $NOTEBOOK_ARGS" |
36 | 36 | fi |
37 | 37 | NOTEBOOK_BIN="jupyterhub-singleuser" |
38 | 38 |
|
|
0 commit comments