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:
parent
47357e8bb6
commit
ca478666ba
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ ynh_abort_if_errors
|
||||||
if [[ -z $synapse_old_version ]]
|
if [[ -z $synapse_old_version ]]
|
||||||
then
|
then
|
||||||
# To be sure that the migration is sucessfull we check that the old synapse version is compatible with the synapse_port_db script.
|
# 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
|
then
|
||||||
ynh_die "Update from this synapse version is not available now. You need to wait for the next update."
|
ynh_die "Update from this synapse version is not available now. You need to wait for the next update."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue