diff --git a/scripts/upgrade b/scripts/upgrade index 1b120d2..e446e41 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -103,24 +103,18 @@ ynh_system_user_create "$app" # Create a dedicated php-fpm config ynh_add_fpm_config -#================================================= -# SPECIFIC UPGRADE -#================================================= -# UPDATE PLUGINS -#================================================= - -pushd "$final_path" - exec_as "$app" "bin/gpm update -y" -popd - -#================================================= -# GENERIC FINALIZATION #================================================= # SECURE FILES AND DIRECTORIES #================================================= chown -R "$app": "$final_path" +#================================================= +# UPDATE PLUGINS +#================================================= + +exec_as "$app" "cd $final_path && bin/gpm update -y" + #================================================= # SETUP SSOWAT #=================================================