bash/matrix-*-room.bash: switch homeserver

This commit is contained in:
Aminda Suomalainen 2021-10-06 23:06:03 +03:00
parent 8274a84c6d
commit 889c068705
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
ACCESSTOKEN=
OLDROOMID=
NEWROOMID=
HOMESERVER=chat.privacytools.io
HOMESERVER=matrix-client.matrix.org
set -x
curl -s -X PUT -H "Authorization: Bearer $ACCESSTOKEN" -H "Content-Type: application/json" --data-binary "{\"replacement_room\":\"$NEWROOMID\"}" "https://$HOMESERVER/_matrix/client/r0/rooms/$OLDROOMID/state/m.room.tombstone"

View File

@ -12,7 +12,7 @@ OLDROOMID=
# Note: $ is not a character that worlks without quotes due to signifying a
# variable
LASTEVENTINOLDROOM=''
HOMESERVER=chat.privacytools.io
HOMESERVER=matrix-client.matrix.org
set -x