Fix secret naming

This commit is contained in:
PapaTutuWawa 2023-08-19 13:03:42 +02:00
parent b9798dcc3a
commit eb67c65e82

View File

@ -6,8 +6,8 @@ else
fi fi
SERVER_DETAILS="" SERVER_DETAILS=""
if [[ ! -z "${PLUGIN_XMPP_SERVER}" ]]; then if [[ ! -z "${XMPP_SERVER}" ]]; then
SERVER_DETAILS=(-j "${PLUGIN_XMPP_SERVER}") SERVER_DETAILS=(-j "${XMPP_SERVER}")
fi fi
SERVER_TLS="" SERVER_TLS=""
@ -15,4 +15,4 @@ if [[ ! -z "${PLUGIN_XMPP_TLS}" ]]; then
SERVER_TLS=--tls SERVER_TLS=--tls
fi fi
echo -e "$MESSAGE" | go-sendxmpp -u ${PLUGIN_XMPP_JID} -p ${PLUGIN_XMPP_PASSWORD} ${SERVER_DETAILS[@]} ${SERVER_TLS} -a 2B -c ${PLUGIN_XMPP_MUC} echo -e "$MESSAGE" | go-sendxmpp -u ${XMPP_JID} -p ${XMPP_PASSWORD} ${SERVER_DETAILS[@]} ${SERVER_TLS} -a 2B -c ${PLUGIN_XMPP_MUC}