1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Update upgrade

Fix setting default phone region
This commit is contained in:
CodeShakingSheep 2024-02-09 14:35:46 +01:00 committed by GitHub
parent a193e33055
commit 800fe77b64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,8 @@ 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)
exec_occ config:system:set default_phone_region --value="$config_locale" country=$(echo "$config_locale" | awk -F'_' '{print $2}')
exec_occ config:system:set default_phone_region --value="$country"
fi fi
# Upgrade may fail if this app is enabled # Upgrade may fail if this app is enabled