From 881e3736d3b7a2e3ef9fcc0d8c27984c4bc9bfc0 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 18 May 2021 10:41:49 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1b07991..4341ad4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,7 +100,7 @@ then # Remove the tmp directory securely ynh_secure_remove --file="$tmpdir" - + # Download, check integrity, uncompress and patch the source from app.src #ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.ini.php" fi @@ -137,10 +137,17 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie #================================================= ynh_script_progression --message="Installating composer and dependencies..." +if [ "$upgrade_type" == "UPGRADE_APP" ] +then + ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" -if [[ -f "$final_path/config/config.ini.php" ]]; then - php$phpversion $final_path/console core:update +# if [[ -f "$final_path/config/config.ini.php" ]]; then +# php$phpversion $final_path/console core:update -n +# fi + + + php$phpversion $final_path/console core:update -n fi #=================================================