From 571b9dbf108316e7307b12454ec81e9902faee09 Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Wed, 16 Oct 2024 19:32:01 +0200 Subject: [PATCH] set $LMOD_SHORT_TIME to prevent Lmod from creating a user cache --- init/eessi_environment_variables | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init/eessi_environment_variables b/init/eessi_environment_variables index d2daf40ace..e3ab99805f 100644 --- a/init/eessi_environment_variables +++ b/init/eessi_environment_variables @@ -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