Skip to content

Commit

Permalink
Update for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Cash committed Oct 3, 2024
1 parent 7ee90bc commit d8ee0a7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ush/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8ee0a7

Please sign in to comment.