Skip to content

Commit 613ea63

Browse files
committed
fix(vre-swan-cern): updating image for SWAN
1 parent 81e046b commit 613ea63

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

vre-swan-cern/scripts/before-notebook.d/13_rucio.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ then
6262
_log "Created directory /home/${NB_USER}/.ipython/profile_default"
6363

6464
# Configure the iPython kernel to load the Rucio JupyterLab extension.
65-
# Given that this is the first script to run, we can safely overwrite any existing configuration.
66-
echo "c.IPKernelApp.extensions = ['rucio_jupyterlab.kernels.ipython']" > /home/${NB_USER}/.ipython/profile_default/ipython_kernel_config.py
65+
echo "c.IPKernelApp.extensions = ['rucio_jupyterlab.kernels.ipython']" >> /home/${NB_USER}/.ipython/profile_default/ipython_kernel_config.py
6766

6867
_log "iPython kernel for Rucio JupyterLab set up successfully."
6968

@@ -73,14 +72,8 @@ then
7372
# The Rusio specific file is provided by CVMFS, and the original is copied from the Dockerfile.
7473
cat "${ESCAPE_CVMFS_PATH}/etc/jupyter/jupyter_server_config.py" >> /home/${NB_USER}/.jupyter/jupyter_server_config.py
7574

76-
# Export the env coming from the spawner to the jupyter server environment if SWAN_USE_RUCIO is true
77-
export SWAN_RUCIO_INSTANCE
78-
export SWAN_RUCIO_RSE
79-
export SWAN_RUCIO_RSE_PATH
80-
export SWAN_RUCIO_RSE_PATH_NUMBER
81-
8275
_log "Extension configuration file written successfully."
8376
_log "Rucio JupyterLab setup completed."
8477
else
85-
_log "Skipping Rucio JupyterLab configuration as HTCondor is not enabled.";
78+
_log "Skipping Rucio JupyterLab configuration as it's not enabled.";
8679
fi

0 commit comments

Comments
 (0)