diff --git a/README.md b/README.md index af45118fbd9818ec5a6f8447cf4027676c8bda5f..48b8e34ca9f4f73e53986dfb58b8f68d84841975 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ University of California, San Diego ## Version -1.7.5 +1.7.6 ## Last Updated -Thursday, July 22nd, 2021 +Friday, July 23rd, 2021 diff --git a/naked-singularity.sh b/naked-singularity.sh index e9c473dbed768c79398ed4be43ef6960b7acd52b..74edffd538ba71f69581385653ff89b891a51c25 100755 --- a/naked-singularity.sh +++ b/naked-singularity.sh @@ -17,7 +17,7 @@ # # LAST UPDATED # -# Thursday, July 22nd, 2021 +# Friday, July 23rd, 2021 # # ---------------------------------------------------------------------- @@ -196,10 +196,19 @@ naked::install() { wget "https://github.com/hpcng/singularity/releases/download/v${singularity_version}/singularity-${singularity_version}.tar.gz" tar -xf "singularity-${singularity_version}.tar.gz" cd singularity - ./mconfig #--prefix=/opt/singularity + ./mconfig #--prefix=/opt/singularity <- include prefix as used-defined option? make -C ./builddir make -C ./builddir install + # Prepend the path of the install directory of Singularity to PATH + # because not all secure_paths in /etc/sudoers may include it. If it + # is not included as one of the secure_paths by default, then the + # final install test below will fail erroneously, even when + # Singularity has been installed successfully. + # + # https://unix.stackexchange.com/questions/8646/why-are-path-variables-different-when-running-via-sudo-and-su + export PATH="/usr/local/bin:${PATH}" + log::output 'Checking if Singularity was installed successully ...' singularity --version if [[ "${?}" -ne 0 ]]; then