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