From 5ab0a2aeca8a2a8c63e97153ae4596eafddab13f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 21 Feb 2021 18:07:48 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5fd1e47..ba5d643 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -154,14 +154,19 @@ yunohost service add $app --description="Responsive web-based XMPP client" --log #================================================= ynh_script_progression --message="Installing Composer..." --weight=1 -ynh_install_composer --phpversion="$phpversion" --workdir="$final_path" +curl -sS https://getcomposer.org/installer \ + | COMPOSER_HOME="$final_path/.composer" \ + php${phpversion} -- --quiet --install-dir="$final_path" --version=2.0.9 + +COMPOSER_HOME="$final_path/.composer" \ + php${phpversion} "$workdir/composer.phar" install --no-dev $install_args \ + -d "$final_path" --quiet --no-interaction #================================================= # Set-up database #================================================= ynh_script_progression --message="Configuring database.." --weight=1 -ynh_composer_exec --phpversion="${phpversion}" --workdir="$final_path" --commands="install --no-dev $install_args" ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate" #=================================================