From abba4a7f8f4f1535af7f89a402cbad5041de9133 Mon Sep 17 00:00:00 2001 From: Aaron van Meerten Date: Thu, 26 Sep 2024 07:22:20 -0500 Subject: [PATCH] fix(reconfigure_xmpp): correctly provide password unencoded via REST --- script/reconfigure_xmpp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/reconfigure_xmpp.sh b/script/reconfigure_xmpp.sh index 2c6bef0b..f83abf6b 100755 --- a/script/reconfigure_xmpp.sh +++ b/script/reconfigure_xmpp.sh @@ -31,7 +31,7 @@ for SERVER_ID in $CONFIG_SERVER_IDS; do | sed 's/=/":"/' \ | sed 's/$/",/')" # build the json for the configuration call - echo "{$CONFIG_JSON\"id\":\"$SERVER_ID\"}" > /tmp/cc-muc.json + echo "{$CONFIG_JSON\"id\":\"$SERVER_ID\"}" | jq '. + {"PASSWORD": .PASSWORD|@base64d}' > /tmp/cc-muc.json if [ "$DRY_RUN" == "true" ]; then echo "Would Add MUC: $SERVER_ID" cat /tmp/cc-muc.json | grep -v 'PASSWORD' | jq