mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update upgrade
Fix upgrading with from installation with no default locale
This commit is contained in:
parent
800fe77b64
commit
c1aaaf398d
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,10 @@ then
|
||||||
# Fix warning "Your installation has no default phone region set"
|
# Fix warning "Your installation has no default phone region set"
|
||||||
if [ "$(exec_occ config:system:get default_phone_region)" == "" ]; then
|
if [ "$(exec_occ config:system:get default_phone_region)" == "" ]; then
|
||||||
config_locale=$(exec_occ config:system:get default_locale)
|
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"
|
||||||
|
fi
|
||||||
country=$(echo "$config_locale" | awk -F'_' '{print $2}')
|
country=$(echo "$config_locale" | awk -F'_' '{print $2}')
|
||||||
exec_occ config:system:set default_phone_region --value="$country"
|
exec_occ config:system:set default_phone_region --value="$country"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue