Skip to content

Commit

Permalink
set $LMOD_SHORT_TIME to prevent Lmod from creating a user cache
Browse files Browse the repository at this point in the history
  • Loading branch information
boegel committed Oct 16, 2024
1 parent 411128a commit 571b9db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init/eessi_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ if [ -d $EESSI_PREFIX ]; then
else
error "Lmod SitePackage.lua file not found at $lmod_sitepackage_file"
fi


# set time until user cache is created to 1 day (86400 seconds),
# to prevent that Lmod ever creates one (since it will quickly go stale)
export LMOD_SHORT_TIME=86400

if [ ! -z $EESSI_BASIC_ENV ]; then
show_msg "Only setting up basic environment, so we're done"
elif [ -d $EESSI_SOFTWARE_PATH ]; then
Expand Down

0 comments on commit 571b9db

Please sign in to comment.