From 17e37e6e9af04c5f147bcf74241137e5121d34f6 Mon Sep 17 00:00:00 2001 From: oufmilo <44617467+oufmilo@users.noreply.github.com> Date: Sun, 5 Feb 2023 12:01:31 +0100 Subject: [PATCH] Fix upgrade --- scripts/upgrade | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6bb9e52..8dd5438 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,7 +34,7 @@ upgrade_type=$(ynh_check_app_version_changed) # ENSURE DOWNWARD COMPATIBILITY #================================================= -if ynh_compare_current_package_version --comparison lt --version 12.105.0~ynh1 +if ynh_compare_current_package_version --comparison lt --version 12.119.2~ynh1 then ynh_die --message="Sorry, this version is not upgradable to the latest version :(" fi @@ -103,10 +103,9 @@ ynh_system_user_create --username=$app --home_dir="$final_path" if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading source files..." + ynh_script_progression --message="Upgrading source files..." --weight=5 pushd "$final_path" - sudo git config --global --add safe.directory $final_path git checkout master git pull --quiet git checkout $COMMIT --quiet