install_pmodules:

- source of configuration moved to the right place
- create directories "${PMODULES_HOME}/{libexec,sbin}" added
This commit is contained in:
Achim Gsell
2017-05-09 01:43:03 +02:00
parent c9e1f74557
commit 9a68b2b060
+4 -2
View File
@@ -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"