From a5376bbd65d967b92c3112ccb5cdda3d85fe1068 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 9 Jul 2015 13:41:14 +0200 Subject: [PATCH] scripts/Bootstrap/install_pmodules.sh: - adapted to new format of Pmodules_version.conf --- scripts/Bootstrap/install_pmodules.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Bootstrap/install_pmodules.sh b/scripts/Bootstrap/install_pmodules.sh index 437eabf..83a6b9b 100755 --- a/scripts/Bootstrap/install_pmodules.sh +++ b/scripts/Bootstrap/install_pmodules.sh @@ -4,11 +4,14 @@ declare -r BASE_DIR=$(cd "$(dirname $0)/../.." && pwd) declare -r BOOTSTRAP_DIR="${BASE_DIR}/scripts/Bootstrap" declare -r SRC_DIR="${BOOTSTRAP_DIR}/Pmodules" -source "${BOOTSTRAP_DIR}/Pmodules_version.conf" +source "${BASE_DIR}/lib/lib.bash" + +read_versions "${BOOTSTRAP_DIR}/Pmodules_version.conf" unset PMODULES_HOME source "/opt/psi/config/environment.bash" +echo "Installing to ${PMODULES_HOME} ..." sed_cmd="s:@PMODULES_HOME@:${PMODULES_HOME}:g;" sed_cmd+="s:@PMODULES_VERSION@:${PMODULES_VERSION}:g;" sed_cmd+="s:@MODULES_VERSION@:${MODULES_VERSION}:g"