From 669261af79578ddc49a37e1ce17fb8275396a84e Mon Sep 17 00:00:00 2001 From: Tim Kreuzer <t.kreuzer@fz-juelich.de> Date: Wed, 13 Nov 2024 17:07:34 +0100 Subject: [PATCH] next iteration in config.py improvement --- lmod/files/start_jupyter.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lmod/files/start_jupyter.sh b/lmod/files/start_jupyter.sh index a4a02dc..8231659 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 -- GitLab