diff --git a/scripts/upgrade b/scripts/upgrade index 8898007..3d23779 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -88,10 +88,6 @@ then ynh_setup_source --dest_dir="$final_path" fi -chmod 750 "$final_path" -#chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # NGINX CONFIGURATION #================================================= @@ -108,6 +104,14 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." # Create a dedicated PHP-FPM config ynh_add_fpm_config +#================================================= +# SECURE FILES AND DIRECTORIES +#================================================= +ynh_script_progression --message="Securing files and directories..." + +chmod 775 $final_path +chown -R $app:www-data $final_path + #================================================= # RELOAD NGINX #=================================================