1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Update update_synapse_for_appservice.sh

This commit is contained in:
Gredin67 2020-09-28 23:43:21 +02:00 committed by GitHub
parent 622f8609f7
commit 9c706742d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ for f in $(ls /etc/matrix-$app/app-service/); do
done
# Set permissions
chown -R /etc/matrix-$app --reference=$service_config_file
chown --reference=$service_config_file -R /etc/matrix-$app
chmod 600 $service_config_file
systemctl restart matrix-$app
@ -22,5 +22,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