diff --git a/scripts/upgrade b/scripts/upgrade index 02c24ba..e6441fe 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -145,9 +145,10 @@ then config_locale=$(exec_occ config:system:get default_locale) if [ "$config_locale" == "" ]; then # If it's not set in config use "US" as default - config_locale="US" + country="US" + else + country=$(echo "$config_locale" | awk -F'_' '{print $2}') fi - country=$(echo "$config_locale" | awk -F'_' '{print $2}') exec_occ config:system:set default_phone_region --value="$country" fi