mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Update to 0.24.1
This commit is contained in:
parent
3784e64eca
commit
99bbcf2f47
3 changed files with 12 additions and 7 deletions
|
@ -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.23.0",
|
"version": "0.24.1",
|
||||||
"url": "http://matrix.org",
|
"url": "http://matrix.org",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -31,6 +31,7 @@ install_source() {
|
||||||
pip install --upgrade cffi ndg-httpsclient setuptools
|
pip install --upgrade cffi ndg-httpsclient setuptools
|
||||||
pip install --upgrade https://github.com/matrix-org/synapse/tarball/master
|
pip install --upgrade https://github.com/matrix-org/synapse/tarball/master
|
||||||
pip install --upgrade psycopg2 lxml
|
pip install --upgrade psycopg2 lxml
|
||||||
|
deactivate
|
||||||
|
|
||||||
# Set permission
|
# Set permission
|
||||||
chown $synapse_user:root -R $final_path
|
chown $synapse_user:root -R $final_path
|
||||||
|
|
|
@ -36,6 +36,7 @@ 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
|
||||||
|
systemctl start matrix-synapse.service
|
||||||
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
|
||||||
|
|
||||||
|
@ -64,7 +65,8 @@ then
|
||||||
install_dependances
|
install_dependances
|
||||||
|
|
||||||
# Create directory Install synapse in virtualenv
|
# Create directory Install synapse in virtualenv
|
||||||
install_from_source
|
setup_dir || true # If the dir aready exist, but to be sure that all dir exist.
|
||||||
|
install_source
|
||||||
|
|
||||||
# Open access to server without a button the home
|
# Open access to server without a button the home
|
||||||
cp ../conf/add_sso_conf.py $final_path
|
cp ../conf/add_sso_conf.py $final_path
|
||||||
|
@ -109,11 +111,16 @@ then
|
||||||
# We get the last version of the synapse_port_db script because an old version could be buggy.
|
# We get the last version of the synapse_port_db script because an old version could be buggy.
|
||||||
cp ../sources/synapse_port_db /opt/yunohost/matrix-synapse/bin/synapse_port_db
|
cp ../sources/synapse_port_db /opt/yunohost/matrix-synapse/bin/synapse_port_db
|
||||||
|
|
||||||
# Migrate database
|
# Migrate database (in virtualenv)
|
||||||
|
source $final_path/bin/activate
|
||||||
/opt/yunohost/matrix-synapse/bin/synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \
|
/opt/yunohost/matrix-synapse/bin/synapse_port_db --sqlite-database /var/lib/matrix-synapse/homeserver.db \
|
||||||
--postgres-config /etc/matrix-synapse/homeserver.yaml
|
--postgres-config /etc/matrix-synapse/homeserver.yaml
|
||||||
|
deactivate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Upgrade manually Synapse
|
||||||
|
install_source
|
||||||
|
|
||||||
# Update nginx config
|
# Update nginx config
|
||||||
config_nginx
|
config_nginx
|
||||||
|
|
||||||
|
@ -126,9 +133,6 @@ set_certificat_access
|
||||||
# Configure Coturn
|
# Configure Coturn
|
||||||
config_coturn
|
config_coturn
|
||||||
|
|
||||||
# Upgrade manually Synapse
|
|
||||||
install_source
|
|
||||||
|
|
||||||
# Set new settings
|
# Set new settings
|
||||||
ynh_app_setting_set $app synapse_version $synapse_version
|
ynh_app_setting_set $app synapse_version $synapse_version
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue