diff --git a/scripts/upgrade b/scripts/upgrade index 51213c1b..d86f3486 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -196,7 +196,9 @@ ynh_script_progression --message="Patching permissions (for version 0.11.5 and n # Default configuration doesn't work ynh_replace_string --match_string="'private' => 0700," --replace_string="'private' => 0750," --target_file=$final_path/config/filesystems.php # Repair permissions for files created after v0.11.5 and before this patch -chmod 750 -R "$final_path/public/storage/m/_v2/" +if [ -d "$final_path/public/storage/m/_v2/" ]; then + chmod 750 -R "$final_path/public/storage/m/_v2/" +fi #================================================= # DEPLOYMENT