From b40e2615b301f4b23afc25849f045621130e2710 Mon Sep 17 00:00:00 2001 From: dragondaddy Date: Thu, 21 Sep 2023 19:05:38 +0200 Subject: [PATCH] Adapt upgrade script --- scripts/upgrade | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index e90d10f..5ea4283 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,6 +35,22 @@ then ynh_setup_source --dest_dir="$install_dir" fi +#================================================= +# ACTUAL UPDATE +#================================================= + +ynh_script_progression --message="Proceeding to migration..." + +/usr/bin/php$phpversion $install_dir/bin/console doctrine:migration:migrate + +/usr/bin/php$phpversion $install_dir/bin/console zusam:migration + +ynh_script_progression --message="Pulling in external libraries with Composer..." + +ynh_install_composer -c "2.4.2" -w $install_dir/api/ + +cp $install_dir/app/dist/* $install_dir/public/ + chown -R $app:www-data "$install_dir" #=================================================