From 97f05c0252b19868515f9381d68fc80a89af380d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:37:02 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index aed8358..61bb941 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -13,7 +13,11 @@ source /usr/share/yunohost/helpers # CHECK VERSION #================================================= -upgrade_type=$(ynh_check_app_version_changed) +if ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1; then + ynh_die --message="Please remove and reinstall Meilisearch" +else + upgrade_type=$(ynh_check_app_version_changed) +fi #================================================= # STANDARD UPGRADE STEPS