From 4ef838910929b6c3d8c47e1d23422c8c08f050c4 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Mon, 29 Mar 2021 18:05:33 +0200 Subject: [PATCH] symply add a message if version is too old to begin with the 0.9.8 update --- conf/0.9.8.src | 6 ------ scripts/upgrade | 9 +++++---- 2 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 conf/0.9.8.src diff --git a/conf/0.9.8.src b/conf/0.9.8.src deleted file mode 100644 index 0be6dec..0000000 --- a/conf/0.9.8.src +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_URL=https://fossil.kd2.org/garradin/uv/garradin-0.9.8.1.tar.bz2 -SOURCE_SUM=7cc64b51c9721c2dd7ee510f245bcfc4693ee07f74581ad74003906eb4716ef1 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=tar.bz2 -SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= \ No newline at end of file diff --git a/scripts/upgrade b/scripts/upgrade index 21bf618..55fe4e4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -24,13 +24,14 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # CHECK VERSION #================================================= - if ynh_compare_current_package_version --comparison lt --version 0.9.8.1~ynh1; then - ynh_setup_source --dest_dir="$final_path" --source_id="0.9.8" + ynh_print_info --message="Sorry your version is outdated and need first an update to version O.9.8.1 with the branch 0.9.8, proceed like that: + 'sudo yunohost app upgrade garradin -u https://github.com/YunoHost-Apps/garradin_ynh/tree/0.9.8 --debug'" + ynh_die "Sorry your version is outdated and need first an update to version O.9.8.1" +else + upgrade_type=$(ynh_check_app_version_changed) fi -upgrade_type=$(ynh_check_app_version_changed) - #================================================= # ENSURE DOWNWARD COMPATIBILITY #=================================================