summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
Diffstat (limited to 'remote/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"