diff --git a/lmod/files/start_jupyter.sh b/lmod/files/start_jupyter.sh index a4a02dcdf63dbec6099634539441be9c447383a4..8231659c233b7f016acc0148ac2770e17d3096d5 100644 --- a/lmod/files/start_jupyter.sh +++ b/lmod/files/start_jupyter.sh @@ -140,11 +140,13 @@ update_config () { # We have to copy the config.py file, because it's mounted as read-only if [[ -f ${DIR}/config.py ]]; then cp ${DIR}/config.py /tmp/config.py + chmod +w /tmp/config.py sed -i -e "s|_servername_|${JUPYTERHUB_SERVER_NAME}|g" /tmp/config.py else # Otherwise the CMD in Dockerfile would not work correctly # If other values are required, one can add a default config.py, this is # just the fallback solution + chmod +w /tmp/config.py echo "c.ServerApp.root_dir = \"/\"" >> /tmp/config.py fi if [[ -f ${EBROOTJUPYTERLAB}/etc/jupyter/jupyter_notebook_config.py ]]; then