mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-23 03:02:53 +01:00
bash/matrix-*-room.bash: switch homeserver
This commit is contained in:
parent
8274a84c6d
commit
889c068705
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user