change the locale to en_GB.UTF-8
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
This commit is contained in:
parent
da0a0a3475
commit
afb3d96060
1 changed files with 11 additions and 0 deletions
11
src/steps-config/5-locale.sh
Executable file
11
src/steps-config/5-locale.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
if ! grep -qP '^en_GB.UTF-8 UTF-8$' /etc/locale.gen; then
|
||||
task_begin "Generating locale en_GB.UTF-8";
|
||||
echo "LC_ALL=en_GB.UTF-8" >> /etc/environment;
|
||||
echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen;
|
||||
echo "LANG=en_GB.UTF-8" > /etc/locale.conf;
|
||||
locale-gen en_GB.UTF-8;
|
||||
task_end "$?" "Error: Failed to generate locale";
|
||||
fi
|
Loading…
Reference in a new issue