Change the script to ignore logins to the git user.
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Ignore non interactive git shells like git since that's just annoying.
|
# Ignore the user git if you have one..
|
||||||
if [ -z "$SSH_TTY" ]; then
|
if [ "$PAM_USER" = "git" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi=
|
||||||
|
|
||||||
# Your ntfy topic URL
|
# Your ntfy topic URL
|
||||||
NTFY_TOPIC="bla bla bla"
|
NTFY_TOPIC="bla bla bla"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user