summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorJonathan Bauer2014-02-04 17:34:09 +0100
committerJonathan Bauer2014-02-04 17:34:09 +0100
commit7f7a22fee896232bae2061aa03d31ebeb864b8e0 (patch)
tree1141895c59f0816e6660c1ca7b801aa8e049bf6f /remote
parent[vmchooser] mute pcsp when starting a vm (diff)
downloadtm-scripts-7f7a22fee896232bae2061aa03d31ebeb864b8e0.tar.gz
tm-scripts-7f7a22fee896232bae2061aa03d31ebeb864b8e0.tar.xz
tm-scripts-7f7a22fee896232bae2061aa03d31ebeb864b8e0.zip
[pam] fix condition for auto closing process of the user logging out
Diffstat (limited to 'remote')
-rwxr-xr-xremote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close b/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close
index 826e0a55..dc1db852 100755
--- a/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close
+++ b/remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close
@@ -25,7 +25,7 @@ if [ "x$PAM_SERVICE" = "xsu" -o "x$PAM_SERVICE" = "xsudo" ]; then
SESSIONCOUNT=$(( $SESSIONCOUNT + 1 ))
fi
-if [ "$SESSIONCOUNT" = "1" ]; then
+if [ "$SESSIONCOUNT" -le "1" ]; then
# last session, close all ghost user processes
usleep 100000 2> /dev/null