diff options
Diffstat (limited to 'debian/libpam0g.postinst')
-rw-r--r-- | debian/libpam0g.postinst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debian/libpam0g.postinst b/debian/libpam0g.postinst index 5e0d63a7..ed133444 100644 --- a/debian/libpam0g.postinst +++ b/debian/libpam0g.postinst @@ -105,7 +105,9 @@ then check="$check sfs-server solid-pop3d squid squid3 tac-plus" check="$check vsftpd wu-ftpd wzdftpd xrdp yardradius yaws" - if ! who | awk '{print $2}'|grep -q ':[0-9]'; then + if [ -n "$(who | awk '$2 ~ /console/ && $NF ~ /:[0-9]/ { print $NF } + $2 ~ /:[0-9]/ { print $2 }')" ] + then check="$check wdm xdm" fi |