Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(reconfigure_xmpp): correctly provide password unencoded via REST #555

Merged
merged 1 commit into from
Sep 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion script/reconfigure_xmpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading