From 5457a77cc91e46270a5e95201d94909be7e9af08 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 22 Jul 2021 07:15:58 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 #=================================================