From b7baa3cf09e19c2e8615219879a9f3614e39360979a5900bb09dca6fee220273 Mon Sep 17 00:00:00 2001 From: ~purplebored Date: Wed, 24 Dec 2025 04:31:01 +0100 Subject: [PATCH] Change the script to ignore logins to the git user. --- ssh-login-ntfy.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ssh-login-ntfy.sh b/ssh-login-ntfy.sh index defb50e..97619eb 100644 --- a/ssh-login-ntfy.sh +++ b/ssh-login-ntfy.sh @@ -1,9 +1,8 @@ #!/bin/bash -# Ignore non interactive git shells like git since that's just annoying. -if [ -z "$SSH_TTY" ]; then +# Ignore the user git if you have one.. +if [ "$PAM_USER" = "git" ]; then exit 0 -fi - +fi= # Your ntfy topic URL NTFY_TOPIC="bla bla bla"