From 29d2aafa4e1feb5ac87c7b81e322420fb20b04f5 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:13:54 +0100 Subject: [PATCH] Update upgrade Fix no default phone region --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 7bce6fe..a5c250a 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -140,6 +140,12 @@ 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) + exec_occ config:system:set default_phone_region --value="$config_locale" + 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