summaryrefslogtreecommitdiffstats
path: root/core/modules/pam-slx-plug
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/pam-slx-plug')
-rw-r--r--core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback b/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
index c1e966f6..695dccaa 100644
--- a/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
+++ b/core/modules/pam-slx-plug/data/opt/openslx/pam/mount.d/99-fallback
@@ -88,7 +88,8 @@ if [ -n "$PIDS" ]; then
kill -9 $PIDS # Kill any leftovers; No quotes
fi
-if ! isHomeMounted; then
+# Only if SHARE_NO_HOME_WARN is empty or 0
+if [ -z "${SHARE_NO_HOME_WARN%0}" ] && ! isHomeMounted; then
LOG_COMBINED=$(mktemp)
[ -n "$LOGFILES" ] && cat ${LOGFILES} > "$LOG_COMBINED" # No quotes
slxlog --delete "pam-ad-mount" "Mount of '${NETWORK_HOME}' to '${PERSISTENT_HOME_DIR}' failed." "${LOG_COMBINED}"