From 622f8609f702ff230866c299c57e0efb042c4e24 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Mon, 28 Sep 2020 22:27:12 +0200 Subject: [PATCH 1/3] Update update_synapse_for_appservice.sh --- sources/update_synapse_for_appservice.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/update_synapse_for_appservice.sh b/sources/update_synapse_for_appservice.sh index fef9ed8..581d333 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 matrix-$app $service_config_file +chown -R /etc/matrix-$app --reference=$service_config_file chmod 600 $service_config_file systemctl restart matrix-$app 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 2/3] 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 From 9b75cf0b2858c919a2cb7508bf94ad6982a4be51 Mon Sep 17 00:00:00 2001 From: Gredin67 <35761345+Gredin67@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:29:01 +0200 Subject: [PATCH 3/3] Update update_synapse_for_appservice.sh --- sources/update_synapse_for_appservice.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/update_synapse_for_appservice.sh b/sources/update_synapse_for_appservice.sh index 7930b88..50097ee 100644 --- a/sources/update_synapse_for_appservice.sh +++ b/sources/update_synapse_for_appservice.sh @@ -9,6 +9,7 @@ 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