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

Remove fix for "no default phone region" (to be handled via config panel)
This commit is contained in:
CodeShakingSheep 2024-02-21 12:37:39 +01:00 committed by GitHub
parent 131e1e3772
commit f72c772d63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -140,18 +140,6 @@ then
exec_occ maintenance:repair exec_occ maintenance:repair
fi 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)
if [ -z "$config_locale" ]; then
# If it's not set in config use "US" as default
country="US"
else
country=$(echo "$config_locale" | awk -F'_' '{print $2}')
fi
exec_occ config:system:set default_phone_region --value="$country"
fi
# Upgrade may fail if this app is enabled # Upgrade may fail if this app is enabled
# Take all apps enabled, and check if mail is one of them # Take all apps enabled, and check if mail is one of them
# Then temporary disable the mail app # Then temporary disable the mail app