mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Revert "Merge pull request #218 from Gredin67/patch-1"
This reverts commit6773230733
, reversing changes made to0e43dd23f6
.
This commit is contained in:
parent
7220a2cf34
commit
385dd0c5da
1 changed files with 2 additions and 3 deletions
|
@ -9,11 +9,10 @@ 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
|
||||
chown --reference=$service_config_file -R /etc/matrix-$app
|
||||
chown matrix-$app $service_config_file
|
||||
chmod 600 $service_config_file
|
||||
|
||||
systemctl restart matrix-$app
|
||||
|
@ -23,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 !!"
|
||||
mv /tmp/app_service_backup.yaml $service_config_file
|
||||
cp /tmp/app_service_backup.yaml $service_config_file
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue