From 9c706742d3e0c5d576128b3a7e4020fea9cdcb83 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Mon, 28 Sep 2020 23:43:21 +0200 Subject: [PATCH] Update update_synapse_for_appservice.sh --- sources/update_synapse_for_appservice.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/update_synapse_for_appservice.sh b/sources/update_synapse_for_appservice.sh index 581d333..7930b88 100644 --- a/sources/update_synapse_for_appservice.sh +++ b/sources/update_synapse_for_appservice.sh @@ -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