Skip to content

Commit

Permalink
Merge pull request #623 from hvelab/curl_ca_rhel
Browse files Browse the repository at this point in the history
Workaround to fix broken curl installation
  • Loading branch information
ocaisa authored Jul 16, 2024
2 parents a16572a + d6d5a2b commit c2cbd39
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions init/eessi_environment_variables
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ if [ -d $EESSI_PREFIX ]; then
false
fi

# Fix wrong path for RHEL >=8 libcurl
# This is required here because we ship curl in our compat layer. If we only provided
# curl as a module file we could instead do this via a `modluafooter` in an EasyBuild
# hook (or via an Lmod hook)
rhel_libcurl_file="/etc/pki/tls/certs/ca-bundle.crt"
if [ -f $rhel_libcurl_file ]; then
show_msg "Found libcurl CAs file at RHEL location, setting CURL_CA_BUNDLE"
export CURL_CA_BUNDLE=$rhel_libcurl_file
fi

else
error "EESSI software layer at $EESSI_SOFTWARE_PATH not found!"
Expand Down

0 comments on commit c2cbd39

Please sign in to comment.