From ea94ec5bce293ec4cb6a0a2f47acaa665b020e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Sat, 30 Sep 2017 00:04:07 +0200 Subject: [PATCH] Block migration while upgrade script is broken --- scripts/upgrade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 3b1e34d..69d28d3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,7 +33,11 @@ ynh_abort_if_errors if [[ -z $synapse_old_version ]] then -# ynh_die "Update from this version is not available now. You need to wait for the next update." + # To be sure that the migration is sucessfull we check that the old synapse version is compatible with the synapse_port_db script. + if [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.22") != 1 ]] + then + ynh_die "Update from this synapse version is not available now. You need to wait for the next update." + fi ## We move from debian package to new package with python virtualenv # Change settings