mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Merge branch 'testing' into master
This commit is contained in:
commit
a32fb5ae4b
5 changed files with 9 additions and 8 deletions
|
@ -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)
|
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
|
## Configuration
|
||||||
|
|
||||||
|
|
|
@ -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_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=615f68b81455b8c8a698c8176472031aa16ea220710099a504d593ca2e62d518
|
SOURCE_SUM=21a6c38dc0adf0f50b568536a9e116f34696ae7e36c3f2b5f1093962444a4bb8
|
||||||
# (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,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_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=c007b801979b40b0dfebfd0ccc268b5bb11b00623a4e7d1f669356cb44a5adfe
|
SOURCE_SUM=8a3209322576811dd6ae9f0e1117977eddbf9f0e6eafc6a12de11326c31a86b9
|
||||||
# (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
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Instant messaging server which uses Matrix",
|
"en": "Instant messaging server which uses Matrix",
|
||||||
"fr": "Un serveur de messagerie instantané basé sur Matrix"
|
"fr": "Un serveur de messagerie instantané basé sur Matrix"
|
||||||
},
|
},
|
||||||
"version": "1.21.2~ynh1",
|
"version": "1.22.1~ynh1",
|
||||||
"url": "http://matrix.org",
|
"url": "http://matrix.org",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -9,10 +9,11 @@ cp $service_config_file /tmp/app_service_backup.yaml
|
||||||
echo "app_service_config_files:" > $service_config_file
|
echo "app_service_config_files:" > $service_config_file
|
||||||
for f in $(ls /etc/matrix-$app/app-service/); do
|
for f in $(ls /etc/matrix-$app/app-service/); do
|
||||||
echo " - /etc/matrix-$app/app-service/$f" >> $service_config_file
|
echo " - /etc/matrix-$app/app-service/$f" >> $service_config_file
|
||||||
|
chmod 600 /etc/matrix-$app/app-service/$f
|
||||||
done
|
done
|
||||||
|
|
||||||
# Set permissions
|
# Set permissions
|
||||||
chown matrix-$app $service_config_file
|
chown --reference=$service_config_file -R /etc/matrix-$app
|
||||||
chmod 600 $service_config_file
|
chmod 600 $service_config_file
|
||||||
|
|
||||||
systemctl restart matrix-$app
|
systemctl restart matrix-$app
|
||||||
|
@ -22,5 +23,5 @@ if [ $? -eq 0 ]; then
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
echo "Failed to restart synapse with the new config file. Restore the old config file !!"
|
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
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue