1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

back to previous code for upgrade

This commit is contained in:
Robles Rodolphe 2021-11-01 16:35:07 +01:00
parent 766aaa0bb6
commit 54dd180713

View file

@ -25,13 +25,13 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
# CHECK VERSION # CHECK VERSION
#================================================= #=================================================
#if ynh_compare_current_package_version --comparison lt --version 0.9.8.1~ynh1; then if ynh_compare_current_package_version --comparison lt --version 0.9.8.1~ynh1; then
# upgrade_type="0.9.8" upgrade_type="0.9.8"
#elif ynh_compare_current_package_version --comparison le --version 1.0.7~ynh2; then elif ynh_compare_current_package_version --comparison le --version 1.0.7~ynh2; then
# upgrade_type="1.1.0" upgrade_type="1.1.0"
#else else
upgrade_type=$(ynh_check_app_version_changed) upgrade_type=$(ynh_check_app_version_changed)
#fi fi
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
@ -85,7 +85,7 @@ fi
# UPGRADE TO 0.9.8 if necessary # UPGRADE TO 0.9.8 if necessary
#================================================= #=================================================
if ynh_compare_current_package_version --comparison lt --version 0.9.8.1 if [ "$upgrade_type" == "0.9.8" ]
then then
ynh_script_progression --message="Upgrading upgrade to 0.9.8" --weight=5 ynh_script_progression --message="Upgrading upgrade to 0.9.8" --weight=5
@ -135,7 +135,7 @@ fi
# UPGRADE TO 1.1.0 if necessary # UPGRADE TO 1.1.0 if necessary
#================================================= #=================================================
if ynh_compare_current_package_version --comparison lt --version 1.1.0 if [ "$upgrade_type" == "1.1.0" ]
then then
ynh_script_progression --message="Upgrading upgrade to 1.1.0" --weight=5 ynh_script_progression --message="Upgrading upgrade to 1.1.0" --weight=5