Skip to content
Snippets Groups Projects
Commit 669261af authored by Tim Kreuzer's avatar Tim Kreuzer
Browse files

next iteration in config.py improvement

parent 6a932737
No related branches found
No related tags found
1 merge request!2restructure User Images
Pipeline #233232 passed
...@@ -140,11 +140,13 @@ update_config () { ...@@ -140,11 +140,13 @@ update_config () {
# We have to copy the config.py file, because it's mounted as read-only # We have to copy the config.py file, because it's mounted as read-only
if [[ -f ${DIR}/config.py ]]; then if [[ -f ${DIR}/config.py ]]; then
cp ${DIR}/config.py /tmp/config.py cp ${DIR}/config.py /tmp/config.py
chmod +w /tmp/config.py
sed -i -e "s|_servername_|${JUPYTERHUB_SERVER_NAME}|g" /tmp/config.py sed -i -e "s|_servername_|${JUPYTERHUB_SERVER_NAME}|g" /tmp/config.py
else else
# Otherwise the CMD in Dockerfile would not work correctly # Otherwise the CMD in Dockerfile would not work correctly
# If other values are required, one can add a default config.py, this is # If other values are required, one can add a default config.py, this is
# just the fallback solution # just the fallback solution
chmod +w /tmp/config.py
echo "c.ServerApp.root_dir = \"/\"" >> /tmp/config.py echo "c.ServerApp.root_dir = \"/\"" >> /tmp/config.py
fi fi
if [[ -f ${EBROOTJUPYTERLAB}/etc/jupyter/jupyter_notebook_config.py ]]; then if [[ -f ${EBROOTJUPYTERLAB}/etc/jupyter/jupyter_notebook_config.py ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment