From 934fc9509c22899058de4077756043606a92e605 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 12 Aug 2019 12:24:08 +0200 Subject: [PATCH] Test locale-gen exists, otherwise install locales --- install_yunohost | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_yunohost b/install_yunohost index 2e8a1e4..87ef69e 100755 --- a/install_yunohost +++ b/install_yunohost @@ -517,6 +517,9 @@ function restart_services() { function fix_locales() { # This function tries to fix the whole locale and perl mess about missing locale files + # Install 'locales' if locale-gen does not exists yet + command -v locale-gen > /dev/null || apt_get_wrapper -o Dpkg::Options::="--force-confold" -y install locales + # Generate at least en_US.UTF-8 sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen && locale-gen