Skip to content
Snippets Groups Projects
Commit 70e2ac5f authored by Wouter Deconinck's avatar Wouter Deconinck Committed by Sylvester Joosten
Browse files

If SINGULARITY_BINDPATH already set, just add to it

parent 6718358f
No related branches found
No related tags found
1 merge request!173If SINGULARITY_BINDPATH already set, just add to it
...@@ -183,7 +183,7 @@ function install_linux() { ...@@ -183,7 +183,7 @@ function install_linux() {
PREFIX_ROOT="/$(realpath $PREFIX | cut -d "/" -f2)" PREFIX_ROOT="/$(realpath $PREFIX | cut -d "/" -f2)"
BINDPATH=$PREFIX_ROOT BINDPATH=$PREFIX_ROOT
echo " --> $PREFIX_ROOT" echo " --> $PREFIX_ROOT"
for dir in /work /scratch /volatile /cache; do for dir in /work /scratch /volatile /cache /gpfs /gpfs01 /gpfs02; do
## only add directories once ## only add directories once
if [[ ${BINDPATH} =~ $(basename $dir) ]]; then if [[ ${BINDPATH} =~ $(basename $dir) ]]; then
continue continue
...@@ -279,7 +279,7 @@ if [ ! -z \${UPGRADE} ]; then ...@@ -279,7 +279,7 @@ if [ ! -z \${UPGRADE} ]; then
fi fi
export ATHENA_PREFIX=$PREFIX/local export ATHENA_PREFIX=$PREFIX/local
export SINGULARITY_BINDPATH=$BINDPATH export SINGULARITY_BINDPATH=$BINDPATH\${SINGULARITY_BINDPATH:+:\$SINGULARITY_BINDPATH}
$SINGULARITY exec $SIF eic-shell \$@ $SINGULARITY exec $SIF eic-shell \$@
EOF EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment