From f72c772d633ae7059d05f2920346129e0506866f Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:37:39 +0100 Subject: [PATCH] Update upgrade Remove fix for "no default phone region" (to be handled via config panel) --- scripts/upgrade | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 59e530d..7bce6fe 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,18 +140,6 @@ then exec_occ maintenance:repair fi - # Fix warning "Your installation has no default phone region set" - if [ "$(exec_occ config:system:get default_phone_region)" == "" ]; then - config_locale=$(exec_occ config:system:get default_locale) - if [ -z "$config_locale" ]; then - # If it's not set in config use "US" as default - country="US" - else - country=$(echo "$config_locale" | awk -F'_' '{print $2}') - fi - exec_occ config:system:set default_phone_region --value="$country" - fi - # Upgrade may fail if this app is enabled # Take all apps enabled, and check if mail is one of them # Then temporary disable the mail app