From a4f4e7e3448e7e9284b329a36e191b4a6001ac01 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 13 Oct 2018 11:26:18 +0200 Subject: [PATCH] [mod] Swap chown and plugins update [mod] Use cd instead of pushd --- scripts/upgrade | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) 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 #=================================================