From d3c04624d8fae88c0113d543d37be6957730d95f Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sat, 26 Aug 2023 14:56:34 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20backward=20compatibility=20tests=C2=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 5de8660..dfc1ec4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -81,7 +81,7 @@ fi # Load up registration variables registration=$(ynh_app_setting_get --app=$app --key=registration) if [ -z ${registration:-} ]; then - if [ "$registration_disabled" -eq "1" ] + if [[ $registration_disabled = *"alse" ]] then really_enable_open_registration="--really-enable-open-registration" else @@ -89,7 +89,7 @@ if [ -z ${registration:-} ]; then fi else ynh_app_setting_delete --app=$app --key=registration - if [[ "$registration" -eq "1" ]] + if [[ $registration == *"rue" ]] then registration_disabled="false" really_enable_open_registration="--really-enable-open-registration"