From aecacc75d49045adeb9fffa665a5ab763dd2bb39 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Mon, 11 Oct 2021 11:00:25 +0200 Subject: [PATCH] disable email notification for backup users --- systems/LoutreOS/services.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 9dfefb2..4c4b43d 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -14,7 +14,7 @@ let ''; login_mail_alert = pkgs.writeShellScriptBin "mail_alert.sh" '' - if [ "$PAM_TYPE" != "close_session" ] && [ "$PAM_USER" != "zfspaulfixe" ]; then + if [ "$PAM_TYPE" != "close_session" ] && [ "$PAM_USER" != "zfspaulfixe" ] && [ "$PAM_USER" != "synology" ] && [ "$PAM_USER" != "rezome" ]; then ${sendMail "paul@nyanlout.re" "SSH Login: $PAM_USER from $PAM_RHOST" "`env`"}/bin/mail.sh fi '';