From 7f7a22fee896232bae2061aa03d31ebeb864b8e0 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 4 Feb 2014 17:34:09 +0100 Subject: [pam] fix condition for auto closing process of the user logging out --- remote/modules/pam/data/opt/openslx/scripts/pam_script_ses_close | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-55-g7522