From d8ee0a7ee6c2299824ce97b4bcfdcc4151445612 Mon Sep 17 00:00:00 2001 From: Benjamin Cash Date: Thu, 3 Oct 2024 14:24:52 -0500 Subject: [PATCH] Update for containers --- ush/module-setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ush/module-setup.sh b/ush/module-setup.sh index 398562652d..80e1841013 100755 --- a/ush/module-setup.sh +++ b/ush/module-setup.sh @@ -3,7 +3,11 @@ set -u source "${HOMEgfs}/ush/detect_machine.sh" -if [[ ${MACHINE_ID} = jet* ]] ; then +if [[ ${MACHINE_ID} = container ]] ; then + source /usr/lmod/lmod/init/bash + module purge + +elif [[ ${MACHINE_ID} = jet* ]] ; then # We are on NOAA Jet if ( ! eval module help > /dev/null 2>&1 ) ; then source /apps/lmod/lmod/init/bash