diff --git a/scripts/upgrade b/scripts/upgrade index 7a28d27..2808946 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -154,13 +154,12 @@ yunohost service add $app --description="Responsive web-based XMPP client" --log #================================================= ynh_script_progression --message="Installing Composer..." --weight=1 -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} "$final_path/composer.phar" install --no-dev $install_args \ - -d "$final_path" --quiet --no-interaction +pushd "$final_path" + ynh_exec_warn_less curl -sS https://getcomposer.org/installer | php$phpversion -- --version="1.10.16" --install-dir="$final_path" \ + && php$phpversion composer.phar config --global discard-changes true --quiet \ + && php$phpversion composer.phar install --no-interaction --quiet \ + && php$phpversion composer.phar movim:migrate --quiet +popd #================================================= # Set-up database