1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Block migration while upgrade script is broken

This commit is contained in:
Josué Tille 2017-09-30 00:04:07 +02:00
parent 95e4a86f80
commit ea94ec5bce

View file

@ -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