From e15085d7c4d3dad41d4d2d9298d264466914bb4a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 13 Nov 2021 17:10:24 +0100 Subject: [PATCH] Update upgrade --- scripts/upgrade | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 5a74403..5ac1143 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -52,6 +52,11 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." --weight=1 +# If the admin is not defined, We can't upgrade this app +if [ -z "$admin" ]; then + ynh_die --message="You are upgrading Adminer from a version where the admin is not defined. please reinstall the Adminer" +fi + # Cleaning legacy permissions if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all