mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Test locale-gen exists, otherwise install locales
This commit is contained in:
parent
8d2974230c
commit
934fc9509c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue