From c3942f5973ec0f07d6a34d43fd3c400d033d826f Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Mon, 19 Sep 2022 14:48:22 +0200 Subject: [PATCH] notify-login.sh: fix bash syntax --- notify-login.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notify-login.sh b/notify-login.sh index 3a27549..1d8ca1b 100755 --- a/notify-login.sh +++ b/notify-login.sh @@ -1,5 +1,5 @@ #!/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" fi