1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zusam_ynh.git synced 2024-09-03 18:05:54 +02:00

Adapt upgrade script

This commit is contained in:
dragondaddy 2023-09-21 19:05:38 +02:00
parent b5b0fb33fa
commit b40e2615b3

View file

@ -35,6 +35,22 @@ then
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
fi 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" chown -R $app:www-data "$install_dir"
#================================================= #=================================================