aboutsummaryrefslogtreecommitdiff
path: root/login-notify.sh
blob: 8c2da2f9eb97717a7a135d2d847c98fb8f00527f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Absolute path of the matrix.sh file
MATRIX_PATH=''

if [ "$PAM_TYPE" != "close_session" ]; then
	host="$(hostname)"
    message="SSH Login: $PAM_USER from $PAM_RHOST on $host"
	$MATRIX_PATH -s $message
fi
ArKa projects. All rights to me, and your next child right arm.