mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-23 11:12:48 +01:00
bash/matrix-*-room.bash: switch homeserver
This commit is contained in:
parent
8274a84c6d
commit
889c068705
@ -7,7 +7,7 @@
|
|||||||
ACCESSTOKEN=
|
ACCESSTOKEN=
|
||||||
OLDROOMID=
|
OLDROOMID=
|
||||||
NEWROOMID=
|
NEWROOMID=
|
||||||
HOMESERVER=chat.privacytools.io
|
HOMESERVER=matrix-client.matrix.org
|
||||||
|
|
||||||
set -x
|
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"
|
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
|
# Note: $ is not a character that worlks without quotes due to signifying a
|
||||||
# variable
|
# variable
|
||||||
LASTEVENTINOLDROOM=''
|
LASTEVENTINOLDROOM=''
|
||||||
HOMESERVER=chat.privacytools.io
|
HOMESERVER=matrix-client.matrix.org
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user