From baa581a9117573220545e3cf0030ff034ab09f46 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 11 Dec 2020 18:19:43 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index a81f194..47ad794 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -135,8 +135,9 @@ ynh_script_progression --message="Installating composer and dependencies..." ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" if [[ -f "$final_path/config/config.ini.php" ]]; then - cd "$final_path" - ynh_exec_as $app ./console core:update + pushd "$final_path" + ynh_exec_as $app ./console core:update + popd fi #=================================================