From 3b2625ae3e3d0cccc0674603ef71c6e6507e3d55 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 18 Sep 2022 13:41:03 +0200 Subject: [PATCH] Fix abort_if_up_to_date to allow force-upgrades --- scripts/ynh_package_version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ynh_package_version b/scripts/ynh_package_version index d6cdc4d..0887f5f 100644 --- a/scripts/ynh_package_version +++ b/scripts/ynh_package_version @@ -14,7 +14,7 @@ read_manifest () { abort_if_up_to_date () { version=$(read_json "/etc/yunohost/apps/$YNH_APP_INSTANCE_NAME/manifest.json" 'version' 2> /dev/null || echo '20160501-7') last_version=$(read_manifest 'version') - if [ "${version}" = "${last_version}" ]; then + if [ "${version}" = "${last_version}" ] && [ "$YNH_APP_UPGRADE_TYPE" != "UPGRADE_FORCED" ]; then ynh_print_info "Up-to-date, nothing to do" ynh_die "" 0 fi