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

This commit is contained in:
Starbeamrainbowlabs 2022-08-06 19:55:42 +01:00
parent da0a0a3475
commit afb3d96060
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

11
src/steps-config/5-locale.sh Executable file
View 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