From 6cd999eaf6ef2757df958df8435566dfae49777f Mon Sep 17 00:00:00 2001 From: galaxy Date: Tue, 15 Nov 2022 10:18:33 +0000 Subject: [PATCH] adapt script to datarmor --- singularity/test_container.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/singularity/test_container.sh b/singularity/test_container.sh index 1a375fb..e900c7b 100755 --- a/singularity/test_container.sh +++ b/singularity/test_container.sh @@ -73,11 +73,14 @@ function downloadFile(){ # Depending on host platform, load singularity env if hasCommand qstat; then - echo "running on DATARMOR using PBS Pro scheduler" - source /etc/profile.d/modules.sh - module purge - module load singularity/3.4.1 - BDM_SCRATCH_DIR=$SCRATCH + hname=$(hostname) + if [[ $hname == *"datarmor"* ]]; then + echo "running on DATARMOR using PBS Pro scheduler" + source /etc/profile.d/modules.sh + module purge + module load singularity/3.4.1 + BDM_SCRATCH_DIR=$SCRATCH + fi elif hasCommand sbatch; then hname=$(hostname -A) if [[ $hname == *"roscoff"* ]]; then