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

13 lines
215 B
Bash

#!/bin/sh
# shellcheck disable=SC1091
. /usr/local/etc/notifiers/xmpp
MSG="$*"
echo "$MSG" |
go-sendxmpp \
--username="$XMPP_ACCOUNT" \
--password="$XMPP_PASSWORD" \
"$XMPP_RECIPIENT"