Skip to content

Commit

Permalink
restrict bind_condor to lpc for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Jul 9, 2024
1 parent 1beb84f commit 30c39f9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 6 additions & 4 deletions bind_condor.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash

BIND_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
BIND_CONDOR_PY=/usr/local/bin/cmslpc-local-conf.py
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${BIND_CONDOR_CONFIG},${BIND_CONDOR_PY}
if [[ "$(uname -a)" == *cms*.fnal.gov* ]]; then
BIND_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
BIND_CONDOR_PY=/usr/local/bin/cmslpc-local-conf.py
export APPTAINER_BIND=${APPTAINER_BIND}${APPTAINER_BIND:+,}${BIND_CONDOR_CONFIG},${BIND_CONDOR_PY}

export APPTAINERENV_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
export APPTAINERENV_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
fi
9 changes: 8 additions & 1 deletion call_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ elif [[ ! " enable disable " =~ " $CALL_HOST_STATUS " ]]; then
export CALL_HOST_STATUS=disable
fi
if [ -z "$CALL_HOST_DIR" ]; then
export CALL_HOST_DIR=~/nobackup/pipes
if [[ "$(uname -a)" == *cms*.fnal.gov* ]]; then
export CALL_HOST_DIR=~/nobackup/pipes
elif [[ "$(uname -a)" == *.uscms.org* ]]; then
export CALL_HOST_DIR=/scratch/`whoami`/pipes
else
echo "Warning: no default CALL_HOST_DIR for $(uname -a), please set your own manually. disabling"
export CALL_HOST_STATUS=disable
fi
fi
export CALL_HOST_DIR=$(readlink -f "$CALL_HOST_DIR")
mkdir -p "$CALL_HOST_DIR"
Expand Down

0 comments on commit 30c39f9

Please sign in to comment.