misc/ssh_tg_notify: Add comments for sections

master
Felix Stupp 2 years ago
parent a98b250c31
commit 10e2dea52a
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -21,7 +21,9 @@ if [[ "$PAM_SERVICE" == "sshd" && "$PAM_TYPE" == "open_session" && "$PAM_USER" !
if (( cache_mtime > (current_time - 4*60*60) )); then
exit 0
fi
# define message text
HOSTNAME=$(hostname --fqdn)
TEXT="Successful login from [$IP](https://stat.ripe.net/app/$IP) for ${PAM_USER} @ ${HOSTNAME} ($(date "+%Y-%m-%d %H:%M"))"
# send to root
sendMessage "$USERID" "$TEXT"
fi

Loading…
Cancel
Save