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

Fix upgrade from old version condition

This commit is contained in:
Josue-T 2017-10-12 14:52:05 +02:00 committed by GitHub
parent 47357e8bb6
commit ca478666ba

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.23") != 1 ]] || [[ $(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