Skip to content

Commit

Permalink
recreate 'installdir/easybuild' and use keeppreviousinstall option
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Nov 14, 2024
1 parent 7315145 commit ea6a842
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion EESSI-remove-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ if [ $EUID -ne 0 ]; then
# directory only (${app_dir}/easybuild)
rm -rdfv ${app_dir}
rm -rdfv ${app_module}
ls ${app_dir}/easybuild || true
# ls didn't change the result (permission denied)
# ls ${app_dir}/easybuild || true
mkdir -p ${app_dir}/easybuild

## 1st remove files in depth-first order
#for filepath in $(find ${app_dir} -depth -type f); do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
# EESSI-extend should adjust EASYBUILD_INSTALLPATH and set
# EASYBUILD_CUDA_COMPUTE_CAPABILITIES
easyconfigs:
- EESSI-extend-2023.06-easybuild.eb
- EESSI-extend-2023.06-easybuild.eb:
options:
keeppreviousinstall: True
2 changes: 1 addition & 1 deletion load_eessi_extend_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ else
eb_install_out=${TMPDIR}/eb_install.out
ok_msg="EESSI-extend/${EESSI_EXTEND_VERSION} installed, let's go!"
fail_msg="Installing EESSI-extend/${EESSI_EXTEND_VERSION} failed, that's not good... (output: ${eb_install_out})"
${EB} "EESSI-extend-${EESSI_EXTEND_VERSION}.eb" 2>&1 | tee ${eb_install_out}
${EB} --keeppreviousinstall True "EESSI-extend-${EESSI_EXTEND_VERSION}.eb" 2>&1 | tee ${eb_install_out}
check_exit_code $? "${ok_msg}" "${fail_msg}"
)

Expand Down

0 comments on commit ea6a842

Please sign in to comment.