diff --git a/scripts/install b/scripts/install index 3bb0c47..0332f6b 100644 --- a/scripts/install +++ b/scripts/install @@ -68,7 +68,6 @@ ynh_psql_execute_as_root \ # Create directory and Install synapse in virtualenv setup_dir install_source -set_permission # Open access to server without a button the home cp ../conf/add_sso_conf.py $final_path @@ -94,6 +93,9 @@ config_coturn ynh_use_logrotate /var/log/matrix-synapse ynh_use_logrotate /var/log/turnserver +# Set Permission for all directory +set_permission + # register yunohost service yunohost service add matrix-synapse diff --git a/scripts/restore b/scripts/restore index 5d02705..8b2b0a2 100644 --- a/scripts/restore +++ b/scripts/restore @@ -39,9 +39,6 @@ adduser turnserver ssl-cert # Restore all config and data ynh_restore -# Set the permission -set_permission - # Open access to server without a button the home python $final_path/add_sso_conf.py @@ -65,6 +62,9 @@ systemctl enable matrix-synapse.service ynh_use_logrotate /var/log/matrix-synapse ynh_use_logrotate /var/log/turnserver +# Set the permission +set_permission + # register yunohost service yunohost service add matrix-synapse diff --git a/scripts/upgrade b/scripts/upgrade index d73276e..00526aa 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -139,7 +139,6 @@ test -e /etc/matrix-synapse/dh.pem || cp /etc/yunohost/certs/$domain/dh.pem /etc # Upgrade manually Synapse install_source -set_permission # Update nginx config config_nginx @@ -150,6 +149,9 @@ config_synapse # Configure Coturn config_coturn +# Set Permission for all directory +set_permission + # Set new settings ynh_app_setting_set $app synapse_version $APP_VERSION