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

Allow upgrade from synapse 0.23

This commit is contained in:
Josue-T 2017-10-11 21:30:57 +02:00 committed by GitHub
parent 1cace29da5
commit 47357e8bb6

View file

@ -34,7 +34,7 @@ ynh_abort_if_errors
if [[ -z $synapse_old_version ]]
then
# 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 ]]
if [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.23") != 1 ]] || [[ $(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