From 9a68b2b060ed0225e0fb4bbf14773281b6608026 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 9 May 2017 01:43:03 +0200 Subject: [PATCH] install_pmodules: - source of configuration moved to the right place - create directories "${PMODULES_HOME}/{libexec,sbin}" added --- install_pmodules.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install_pmodules.sh b/install_pmodules.sh index 080c3be..61d7e50 100755 --- a/install_pmodules.sh +++ b/install_pmodules.sh @@ -32,6 +32,8 @@ while (( $# > 0 )); do shift 1 done +source "${BOOTSTRAP_DIR}/config/environment.bash" + if [[ ! -d "${PMODULES_ROOT}" ]]; then read -p "The requested root directory does not exist. Create it? [y|N] " -n 1 ans case ${ans} in @@ -45,8 +47,6 @@ if [[ ! -d "${PMODULES_ROOT}" ]]; then esac fi -source "${BOOTSTRAP_DIR}/config/environment.bash" - ### # # begin installation @@ -67,6 +67,8 @@ install -d -m 0755 "${PMODULES_HOME}/bin" install -d -m 0755 "${PMODULES_HOME}/config" install -d -m 0755 "${PMODULES_HOME}/init" install -d -m 0755 "${PMODULES_HOME}/lib" +install -d -m 0755 "${PMODULES_HOME}/libexec" +install -d -m 0755 "${PMODULES_HOME}/sbin" install -m 0755 "${SRC_DIR}/modulecmd" "${PMODULES_HOME}/bin" install -m 0755 "${SRC_DIR}/modulecmd.bash" "${PMODULES_HOME}/libexec"