From 4398cb4d4496e99844a5d028918df0c6464353df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Mon, 20 Aug 2018 12:45:35 +0200 Subject: [PATCH] Set executable coturn update config script --- scripts/install | 3 ++- scripts/restore | 1 + scripts/upgrade | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f03c4cc..dd12558 100644 --- a/scripts/install +++ b/scripts/install @@ -303,9 +303,10 @@ python3 $final_path/add_sso_conf.py || ynh_die "Your file /etc/ssowat/conf.json. # SECURE FILES AND DIRECTORIES #================================================= -# WARRNING : theses command are used in INSTALL, UPGRADE (2 times), RESTORE +# WARRNING : theses command are used in INSTALL, UPGRADE, RESTORE # For any update do it in all files chown $synapse_user:root -R $final_path +chmod 770 $final_path/Coturn_config_rotate.sh chown $synapse_user:root -R /var/lib/matrix-$app chown $synapse_user:root -R /var/log/matrix-$app chown $synapse_user:root -R /etc/matrix-$app diff --git a/scripts/restore b/scripts/restore index 2f907a8..f260bb8 100644 --- a/scripts/restore +++ b/scripts/restore @@ -173,6 +173,7 @@ ynh_use_logrotate /var/log/matrix-$app # WARNING : these commands are used in INSTALL, UPGRADE, RESTORE # For any update do it in all files chown $synapse_user:root -R $final_path +chmod 770 $final_path/Coturn_config_rotate.sh chown $synapse_user:root -R /var/lib/matrix-$app chown $synapse_user:root -R /var/log/matrix-$app chown $synapse_user:root -R /etc/matrix-$app diff --git a/scripts/upgrade b/scripts/upgrade index 54aca18..4f6eeab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -274,9 +274,10 @@ ynh_add_systemd_config coturn-$app coturn-synapse.service # SECURE FILES AND DIRECTORIES #================================================= -# WARRNING : theses command are used in INSTALL, UPGRADE (2 times), RESTORE +# WARRNING : theses command are used in INSTALL, UPGRADE, RESTORE # For any update do it in all files chown $synapse_user:root -R $final_path +chmod 770 $final_path/Coturn_config_rotate.sh chown $synapse_user:root -R /var/lib/matrix-$app chown $synapse_user:root -R /var/log/matrix-$app chown $synapse_user:root -R /etc/matrix-$app