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:
parent
b5b0fb33fa
commit
b40e2615b3
1 changed files with 16 additions and 0 deletions
|
@ -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"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue