Skip to content

Commit

Permalink
Updated the script for envmod
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenrong-wang committed Jul 17, 2024
1 parent 03be1f4 commit f1616c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/cluster_initv7.sh
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,9 @@ if ! command -v module >/dev/null 2>&1; then
make -j$num_processors && make install
ln -s /opt/environment-modules/init/profile.sh /etc/profile.d/modules.sh
ln -s /opt/environment-modules/init/profile.sh /etc/profile.d/modules.csh
else
#if module is already available, add the /hpc_apps/envmod to system envvar
echo -e "export MODULEPATH=/hpc_apps/envmod:\$MODULEPATH" >> /etc/profile
fi
time_current=`date "+%Y-%m-%d %H:%M:%S"`
echo -e "# $time_current Environment Module has been installed." >> ${logfile}
Expand Down

0 comments on commit f1616c9

Please sign in to comment.