From 07eeba447e8336ca2c9402b7dd76a2227f0141eb Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Sat, 3 Sep 2022 14:24:10 +0200 Subject: [PATCH] misc/ssh_tg_notify: Replace link to ipinfo.io with link to stat.ripe.net --- roles/misc/ssh_tg_notify/templates/notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/misc/ssh_tg_notify/templates/notify.sh b/roles/misc/ssh_tg_notify/templates/notify.sh index b4487b9..4d3c25a 100644 --- a/roles/misc/ssh_tg_notify/templates/notify.sh +++ b/roles/misc/ssh_tg_notify/templates/notify.sh @@ -18,6 +18,6 @@ if [[ "$PAM_SERVICE" == "sshd" && "$PAM_TYPE" == "open_session" && "$PAM_USER" ! exit 0 fi HOSTNAME=$(hostname --fqdn) - TEXT="Successful login from [$IP](https://ipinfo.io/$IP) for ${PAM_USER} @ ${HOSTNAME} ($(date "+%Y-%m-%d %H:%M"))" + TEXT="Successful login from [$IP](https://stat.ripe.net/app/$IP) for ${PAM_USER} @ ${HOSTNAME} ($(date "+%Y-%m-%d %H:%M"))" curl -s --max-time "$TIMEOUT" -d "chat_id=$USERID" -d "disable_web_page_preview=1" -d "parse_mode=Markdown" -d "text=$TEXT" "$URL" > /dev/null fi