mirror of
https://github.com/YunoHost-Apps/zusam_ynh.git
synced 2024-09-03 18:05:54 +02:00
Merge pull request #5 from YunoHost-Apps/testing
Fix upgrade from 0.5.3
This commit is contained in:
commit
dce27cfa11
5 changed files with 28 additions and 4 deletions
|
@ -29,7 +29,7 @@ The goal is to make a stable, extensible, lightweight and user-friendly way to s
|
|||
- Low server footprint
|
||||
|
||||
|
||||
**Shipped version:** 0.5.4~ynh1
|
||||
**Shipped version:** 0.5.4~ynh2
|
||||
|
||||
**Demo:** https://demo.zusam.org
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ L'objectif est de disposer d'un outil stable, extensible, léger et convivial po
|
|||
- Faible empreinte serveur
|
||||
|
||||
|
||||
**Version incluse :** 0.5.4~ynh1
|
||||
**Version incluse :** 0.5.4~ynh2
|
||||
|
||||
**Démo :** https://demo.zusam.org
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "Zusam"
|
|||
description.en = "Truly private space for you and your friends"
|
||||
description.fr = "Espace entièrement privé pour vous et vos amis"
|
||||
|
||||
version = "0.5.4~ynh1"
|
||||
version = "0.5.4~ynh2"
|
||||
|
||||
maintainers = ["Papa Dragon"]
|
||||
|
||||
|
|
|
@ -32,9 +32,30 @@ then
|
|||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
ynh_setup_source --dest_dir="$install_dir" --full_replace
|
||||
if [ -f $install_dir/api/config/packages/sensio_framework_extra.yaml ]
|
||||
then
|
||||
ynh_secure_remove $install_dir/api/config/packages/sensio_framework_extra.yaml
|
||||
fi
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# ACTUAL UPDATE
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Proceeding to migration..."
|
||||
|
||||
pushd $install_dir
|
||||
ynh_script_progression --message="Proceeding to migration..."
|
||||
ynh_secure_remove $install_dir/api/var/cache/
|
||||
php$phpversion api/bin/console doctrine:migration:migrate --no-interaction --allow-no-migration
|
||||
php$phpversion api/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 -r app/dist/* public/
|
||||
popd
|
||||
|
||||
chown -R $app:www-data "$install_dir"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -4,3 +4,6 @@ test_format = 1.0
|
|||
|
||||
args.first_user = "package_checker"
|
||||
args.first_group = "SuperGroup"
|
||||
|
||||
test_upgrade_from.6cea5ff5b8d5984e34ca8b3749e342fa96d3779d.name = "Upgrade from 0.5.3~ynh1"
|
||||
test_upgrade_from.00e87799b98e083dfbee1c1b601e74f05db6a7d9.name = "Upgrade from 0.5.4~ynh1"
|
||||
|
|
Loading…
Reference in a new issue