summaryrefslogtreecommitdiff
path: root/playbooks.d/ssh/share/notify.sh
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks.d/ssh/share/notify.sh')
-rw-r--r--playbooks.d/ssh/share/notify.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/playbooks.d/ssh/share/notify.sh b/playbooks.d/ssh/share/notify.sh
new file mode 100644
index 0000000..00e0b9f
--- /dev/null
+++ b/playbooks.d/ssh/share/notify.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ "$PAM_TYPE" != "open_session" ]
+then
+ exit 0
+fi
+
+ntfy send "$PAM_USER@$(hostname -f)" "Login Succesful"