From 5408be753c0c9029360f3b7c03e0b91f2e82f86c Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Mon, 1 Nov 2021 11:18:22 +0100 Subject: [PATCH] try fix issue upgrade from older version 1.0.7 --- scripts/upgrade | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index e6615d1..cb03da3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,8 +27,8 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) if ynh_compare_current_package_version --comparison lt --version 0.9.8.1~ynh1; then upgrade_type="0.9.8" -elif ynh_compare_current_package_version --comparison lt --version 1.0.6~ynh1; then - upgrade_type="1.1.1" +elif ynh_compare_current_package_version --comparison le --version 1.0.7~ynh2; then + upgrade_type="1.1.0" else upgrade_type=$(ynh_check_app_version_changed) fi @@ -134,9 +134,9 @@ fi # UPGRADE TO 1.1.1 if necessary #================================================= -if [ "$upgrade_type" == "1.1.1" ] +if [ "$upgrade_type" == "1.1.0" ] then - ynh_script_progression --message="Upgrading upgrade to 1.1.1" --weight=5 + ynh_script_progression --message="Upgrading upgrade to 1.1.0" --weight=5 # Download, check integrity, uncompress and patch the source from 0.9.8.src ynh_setup_source --keep="config.local.php" --dest_dir="$final_path" --source_id="1.1.1" # Set permissions on app files