1
0

Change the script to ignore logins to the git user.

This commit is contained in:
2025-12-24 04:31:01 +01:00
parent fbc642564b
commit b7baa3cf09

View File

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