From 8da76ae8a2a3d0c832937b9dfbc09ae1e6017c66 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 26 May 2021 09:03:58 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 2712591..d07323b 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -125,8 +125,10 @@ ynh_script_progression --message="Installating composer and dependencies..." if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_install_composer + ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" + if [[ -f "$final_path/config/config.ini.php" ]]; then php$phpversion $final_path/console core:update -n + fi fi #=================================================