HOME env var is still set to /home/jovyan
This is in the environment when executing startup.sh
, so it is passed on to jupyter
.
This probably happens because we don't source
the start.sh
script (probably the usermod
in there would alter the environment properly.
We cannot source start.sh
, however, as sourcing a script runs it in the current shell, and start.sh
has a great big exec $*
at the end.
Our best bet is probably just to HOME="/home/$NB_USER"
in startup.sh