From ca5453e633ba16568ce9a38b2a4f7845002cd401 Mon Sep 17 00:00:00 2001 From: CodeShakingSheep <19874562+CodeShakingSheep@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:23:13 +0100 Subject: [PATCH] Update install Fix language values for config.php --- scripts/install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 50c1fcc..d3063da 100755 --- a/scripts/install +++ b/scripts/install @@ -88,10 +88,15 @@ ynh_script_progression --message="Configuring $app..." --weight=8 exec_occ config:system:set mysql.utf8mb4 --type boolean --value="true" # Set default language in config.php -exec_occ config:system:set default_language --value="$language" +raw_language=$(echo "$language" | awk -F'_' '{print $1}') +exec_occ config:system:set default_language --value="$raw_language" + +# Set default locale in config.php +exec_occ config:system:set default_locale --value="$language" # Set default phone region in config.php -exec_occ config:system:set default_phone_region --value="$language" +country=$(echo "$language" | awk -F'_' '{print $2}') +exec_occ config:system:set default_phone_region --value="$country" # Ensure that UpdateNotification app is disabled exec_occ app:disable updatenotification