#!/bin/bash # Matrix (Synapse) upgrade verification. # --------------------------------------------------------------------------- # Synapse runs database schema migrations on boot and does not serve until they # finish, so "answering with the new version" is genuine evidence the rung # landed rather than merely that a process started. # # /_synapse/admin/v1/server_version needs no authentication and returns the # running version outright: {"server_version":"1.158.0"}. The tag carries a # leading v (v1.158.0); the shared comparison comes down to numbers, so that # difference does not matter. # matrix_upgrade_verify matrix_upgrade_verify() { updaterVerifyHttpVersion "$1" "$2" "$3" 8008 \ "/_synapse/admin/v1/server_version" "json:server_version" }