diff --git a/scripts/upgrade b/scripts/upgrade index 8e0072c..98d5fb3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -244,6 +244,11 @@ ynh_app_setting_set $app project_version "$project_version" ynh_app_setting_set $app core_version "$core_version" ynh_app_setting_set $app ldap_version "$ldap_version" +# Set files and directories permissions +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # GENERIC FINALIZATION #=================================================