diff --git a/README.md b/README.md index 4764b92..2bf9528 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,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) -**Shipped version:** 1.21.2 +**Shipped version:** 1.22.1 ## Configuration diff --git a/conf/armv7_buster.src b/conf/armv7_buster.src index ed57d4d..5ca9fb6 100644 --- a/conf/armv7_buster.src +++ b/conf/armv7_buster.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.21.2/matrix-synapse_1.21.2-buster-bin1_armv7l.tar.gz -SOURCE_SUM=615f68b81455b8c8a698c8176472031aa16ea220710099a504d593ca2e62d518 +SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.22.1/matrix-synapse_1.22.1-buster-bin1_armv7l.tar.gz +SOURCE_SUM=21a6c38dc0adf0f50b568536a9e116f34696ae7e36c3f2b5f1093962444a4bb8 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/conf/armv7_stretch.src b/conf/armv7_stretch.src index c007363..37f5e91 100644 --- a/conf/armv7_stretch.src +++ b/conf/armv7_stretch.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.21.2/matrix-synapse_1.21.2-stretch-bin1_armv7l.tar.gz -SOURCE_SUM=c007b801979b40b0dfebfd0ccc268b5bb11b00623a4e7d1f669356cb44a5adfe +SOURCE_URL=https://github.com/YunoHost-Apps/synapse_python_build/releases/download/v1.22.1/matrix-synapse_1.22.1-stretch-bin1_armv7l.tar.gz +SOURCE_SUM=8a3209322576811dd6ae9f0e1117977eddbf9f0e6eafc6a12de11326c31a86b9 # (Optional) Program to check the integrity (sha256sum, md5sum...) # default: sha256 SOURCE_SUM_PRG=sha256sum diff --git a/manifest.json b/manifest.json index de17306..d4a3915 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Instant messaging server which uses Matrix", "fr": "Un serveur de messagerie instantané basé sur Matrix" }, - "version": "1.21.2~ynh1", + "version": "1.22.1~ynh1", "url": "http://matrix.org", "license": "Apache-2.0", "maintainer": { diff --git a/sources/update_synapse_for_appservice.sh b/sources/update_synapse_for_appservice.sh index fef9ed8..50097ee 100644 --- a/sources/update_synapse_for_appservice.sh +++ b/sources/update_synapse_for_appservice.sh @@ -9,10 +9,11 @@ cp $service_config_file /tmp/app_service_backup.yaml echo "app_service_config_files:" > $service_config_file for f in $(ls /etc/matrix-$app/app-service/); do echo " - /etc/matrix-$app/app-service/$f" >> $service_config_file + chmod 600 /etc/matrix-$app/app-service/$f done # Set permissions -chown matrix-$app $service_config_file +chown --reference=$service_config_file -R /etc/matrix-$app chmod 600 $service_config_file systemctl restart matrix-$app @@ -22,5 +23,5 @@ if [ $? -eq 0 ]; then exit 0 else echo "Failed to restart synapse with the new config file. Restore the old config file !!" - cp /tmp/app_service_backup.yaml $service_config_file + mv /tmp/app_service_backup.yaml $service_config_file fi