mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Upgrade synapse to 0.27.2 (#40)
* Upgrade synapse to 0.27.2 * Add comment about check compatibility in upgrade script
This commit is contained in:
parent
9a9c6973fb
commit
8094a4aa87
5 changed files with 11 additions and 7 deletions
|
@ -16,7 +16,7 @@ Instant messaging server matrix network.
|
||||||
|
|
||||||
Yunohost chatroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org)
|
Yunohost chatroom with matrix : [https://riot.im/app/#/room/#yunohost:matrix.org](https://riot.im/app/#/room/#yunohost:matrix.org)
|
||||||
|
|
||||||
**Shipped version:** 0.26.1
|
**Shipped version:** 0.27.2
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
SOURCE_URL=https://github.com/Josue-T/synapse_python_build/releases/download/v0.26.1/matrix-synapse_0.26.1-bin1_armv7l.tar.gz
|
SOURCE_URL=https://github.com/Josue-T/synapse_python_build/releases/download/v0.27.2/matrix-synapse_0.27.2-bin1_armv7l.tar.gz
|
||||||
SOURCE_SUM=ca5e2dfed4f5658696d0d061951b6351efdc94625a8d615beba26d0b37f4a030
|
SOURCE_SUM=4dfba2316986ad0e3df7d3a14c79006d3f2dc48ef062fc14bb1614f4af99a2fb
|
||||||
# (Optional) Program to check the integrity (sha256sum, md5sum...)
|
# (Optional) Program to check the integrity (sha256sum, md5sum...)
|
||||||
# default: sha256
|
# default: sha256
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
SOURCE_URL=https://github.com/matrix-org/synapse/archive/v0.26.1.tar.gz
|
SOURCE_URL=https://github.com/matrix-org/synapse/archive/v0.27.2.tar.gz
|
||||||
SOURCE_SUM=52cf9322e6cc4d4b8a745a3acb369fe828f471ab3de674e8f636c9d2abeaf5da
|
SOURCE_SUM=01080b19f66779335eb68d203c34a4caf681d3c3ed66a1ebd923dcd0833effa2
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"en": "Instant messaging server who use matrix",
|
"en": "Instant messaging server who use matrix",
|
||||||
"fr": "Un serveur de messagerie instantané basé sur matrix"
|
"fr": "Un serveur de messagerie instantané basé sur matrix"
|
||||||
},
|
},
|
||||||
"version": "0.26.1~ynh1",
|
"version": "0.27.2~ynh1",
|
||||||
"url": "http://matrix.org",
|
"url": "http://matrix.org",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -48,7 +48,11 @@ cli_port=$(ynh_app_setting_get $app cli_port)
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# 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 [[ -z $synapse_old_version ]] && [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.25") != 1 ]] && [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.26") != 1 ]]
|
# We need to make the user able to do the migration to the new package.
|
||||||
|
# While the official synapse version is updated, the idea is to test the migration with the new version.
|
||||||
|
# If the migration pass we can update this next line with the new synapse package.
|
||||||
|
# For more information see comment : https://github.com/YunoHost-Apps/synapse_ynh/pull/40#pullrequestreview-108680051
|
||||||
|
if [[ -z $synapse_old_version ]] && [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.27") != 1 ]] && [[ $(dpkg -l | grep -c -E "ii.*matrix-synapse.*0.26") != 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…
Add table
Reference in a new issue