notify-login.sh: fix bash syntax

This commit is contained in:
Alice Gaudon 2022-09-19 14:48:22 +02:00
parent d7abf80535
commit c3942f5973

View File

@ -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