From fff9e22599acf31c703feef9052ce963adc77390 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Sun, 3 Dec 2023 13:39:58 +0100 Subject: [PATCH] Fixed source provisioning --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 8743ae1..571aff7 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers # CHECK VERSION #================================================= -upgrade_type=$(ynh_check_app_version_changed) +upgrade_type=$(ynh_check_app_version_changed) #================================================= # ENSURE DOWNWARD COMPATIBILITY @@ -62,7 +62,7 @@ fi # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= -if [ "$upgrade_type" == "UPGRADE_APP" ] +if [ "$upgrade_type" == "UPGRADE_APP" || $(ynh_compare_current_package_version --comparison le --version "1.7.1~ynh2")] then ynh_script_progression --message="Upgrading source files..." --weight=1