Skip to content

Commit

Permalink
check if /contrib-epic exist
Browse files Browse the repository at this point in the history
  • Loading branch information
weihuang-jedi committed Nov 8, 2024
1 parent c71e5d3 commit 02ad06f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ush/load_fv3gfs_modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ case "${MACHINE_ID}" in
# to be the same as the login node. This should be workng from in the
# ALLNODES section of the User Bootstrap of Parllel Works but it doen't
# on the Rokcky Clusters (works fine in the Centos 7 cluster)
#if [[ ! -d /contrib-epic/EPIC ]]; then
# /contrib/Terry.McGuinness/SETUP/mount-epic-contrib.sh
# sudo systemctl daemon-reload
#fi
if [[ ! -d /contrib-epic/EPIC ]]; then
if [[ -d /contrib/Terry.McGuinness/SETUP ]]; then
/contrib/Terry.McGuinness/SETUP/mount-epic-contrib.sh
sudo systemctl daemon-reload
fi
fi
# Check if the OS is Rocky or CentOS
OS_NAME=$(grep -E '^ID=' /etc/os-release | sed -E 's/ID="?([^"]*)"?/\1/') || true
# Source versions file for runtime
Expand Down

0 comments on commit 02ad06f

Please sign in to comment.