Skip to content

Commit eac373c

Browse files
author
Alan Christie
committed
fix: Now copies to parent of ~
1 parent 98db658 commit eac373c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,13 @@ Both are exposed in the example parameter file `example-parameters.yaml`.
239239
A number of key files are prepared by the built-in `/usr/local/bin/start.sh` script
240240
that the operator creates (via a **ConfigMap**). This script, used as the
241241
container's **command**, will also recursively copy the content of the container image's
242-
`/home/code/copy-to-home` directory (if it exists) to `~` prior to running Jupyter.
242+
`/home/code/copy-to-startup` directory (if it exists) to the parent of the
243+
`$HOME` (`~`) directory (the parent of the instance directory) prior to
244+
running Jupyter.
245+
243246
The script copies files using the command: -
244247

245-
cp -r -u /home/code/copy-to-home/* ~
248+
cp -r -u /home/code/copy-to-home/* ~/..
246249

247250
---
248251

operator/handlers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
cp /etc/jupyter_notebook_config.json ~
8989
fi
9090
91-
if [ -d /home/code/copy-to-home ]; then
92-
echo "Copying copy-to-home content"
93-
cp -r -u /home/code/copy-to-home/* ~
91+
if [ -d /home/code/copy-to-startup ]; then
92+
echo "Copying copy-to-startup content"
93+
cp -r -u /home/code/copy-to-startup/* ~/..
9494
fi
9595
9696
jupyter lab --config=~/jupyter_notebook_config.json

0 commit comments

Comments
 (0)