diff --git a/scripts/upgrade b/scripts/upgrade index 2808946..6f263e2 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -157,20 +157,15 @@ ynh_script_progression --message="Installing Composer..." --weight=1 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 update --no-interaction --quiet \ && php$phpversion composer.phar install --no-interaction --quiet \ && php$phpversion composer.phar movim:migrate --quiet popd -#================================================= -# Set-up database -#================================================= -ynh_script_progression --message="Configuring database.." --weight=1 - -ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands="movim:migrate" - #================================================= # SETUP SYSTEMD #================================================= +ynh_script_progression --message="Upgrading systemd configuration..." --weight=5 ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file=../conf/systemd.service ynh_replace_string --match_string="__PATH__" --replace_string="$path_url" --target_file=../conf/systemd.service