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