#!/bin/bash # Mattermost upgrade verification. # --------------------------------------------------------------------------- # Mattermost migrates its schema on boot and refuses to serve the API until it # has finished, so a 200 from the ping endpoint carrying the new version is # evidence the migration completed. # # /api/v4/system/ping is unauthenticated. The version is NOT in the body — it # rides in the X-Version-Id header, as # "11.9.1.311276....false": build version first, then metadata. The shared # comparison reads leading numbers, so it matches the 11.9 tag against the # 11.9.1 build without needing to know that layout. # mattermost_upgrade_verify mattermost_upgrade_verify() { updaterVerifyHttpVersion "$1" "$2" "$3" 8065 \ "/api/v4/system/ping" "header:X-Version-Id" }