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:
parent
622f8609f7
commit
9c706742d3
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ for f in $(ls /etc/matrix-$app/app-service/); do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Set permissions
|
# 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
|
chmod 600 $service_config_file
|
||||||
|
|
||||||
systemctl restart matrix-$app
|
systemctl restart matrix-$app
|
||||||
|
@ -22,5 +22,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…
Reference in a new issue