„sshlogin.sh“ ändern

This commit is contained in:
Yann Mölle 2023-04-12 07:24:21 +00:00
parent b0be6ddd7d
commit db4962e900

View File

@ -1,6 +1,5 @@
#!/bin/bash
if [ "$PAM_TYPE" != "close_session" ]; then if [ "$PAM_TYPE" != "close_session" ]; then
host="`hostname`" host="`hostname`"
message="`env`" message="`env`"
sh /opt/push/pushover.sh -u [userkey] -a [apikey/token] "SSH Login: $PAM_USER from $PAM_RHOST on $host" sh /opt/push/pushover.sh -u ${userkey} -a ${apikey} "SSH Login: $PAM_USER from $PAM_RHOST on $host"
fi fi