summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2014-07-17 15:20:52 +0200
committerJonathan Bauer2014-07-17 15:20:52 +0200
commit0e24e729986217356267c30edb2b12f45869d80f (patch)
treec8d682b91182d0be9364f5db4acb536969698100
parent[vmchooser2] fix git clone failing since our git moved. (diff)
downloadtm-scripts-0e24e729986217356267c30edb2b12f45869d80f.tar.gz
tm-scripts-0e24e729986217356267c30edb2b12f45869d80f.tar.xz
tm-scripts-0e24e729986217356267c30edb2b12f45869d80f.zip
[pam] only check for nslcd if its in REQUIRED_BINARIES
quick fix for centos. TODO: split PAM modules in sub-modules
-rw-r--r--remote/modules/pam/module.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/pam/module.build b/remote/modules/pam/module.build
index 067cd431..b678fdd6 100644
--- a/remote/modules/pam/module.build
+++ b/remote/modules/pam/module.build
@@ -47,7 +47,7 @@ build() {
cd "$MODULE_BUILD_DIR"
local NSLCD_PATH=$(which nslcd)
fi
- [ -z "$NSLCD_PATH" ] && perror "Could not 'which nslcd'"
+ [[ $REQUIRED_BINARIES = *nslcd* ]] && [ -z "$NSLCD_PATH" ] && perror "Could not 'which nslcd'"
# Build nslcd service file
mkdir -p "etc/systemd/system"
sed "s,%PATH%,$NSLCD_PATH,g" "$MODULE_DIR/templates/nslcd-systemd.service" > "etc/systemd/system/nslcd.service" || perror "Could not fill nslcd.service template"