ansible/roles/notifiers/files/bin/notify-xmpp

13 lines
215 B
Plaintext
Raw Permalink Normal View History

2023-05-09 09:56:59 +02:00
#!/bin/sh
# shellcheck disable=SC1091
. /usr/local/etc/notifiers/xmpp
MSG="$*"
echo "$MSG" |
go-sendxmpp \
--username="$XMPP_ACCOUNT" \
--password="$XMPP_PASSWORD" \
"$XMPP_RECIPIENT"