notify-login.sh: fix bash syntax
This commit is contained in:
parent
d7abf80535
commit
c3942f5973
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ "$PAM_TYPE" != "close_session" ]; then
|
if [ "$PAM_USER" != "gitea" ] && [ "$PAM_TYPE" != "close_session" ]; then
|
||||||
echo -e "$PAM_USER has successfully logged in on $(hostname) from $PAM_RHOST" | $(dirname $0)/mail.sh "$(hostname) SSH Login: $PAM_USER"
|
echo -e "$PAM_USER has successfully logged in on $(hostname) from $PAM_RHOST" | $(dirname $0)/mail.sh "$(hostname) SSH Login: $PAM_USER"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user