From afb3d96060d84b7eba39914abab5d49c81d7b1e4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 6 Aug 2022 19:55:42 +0100 Subject: [PATCH] change the locale to en_GB.UTF-8 --- src/steps-config/5-locale.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 src/steps-config/5-locale.sh diff --git a/src/steps-config/5-locale.sh b/src/steps-config/5-locale.sh new file mode 100755 index 0000000..9ddecd2 --- /dev/null +++ b/src/steps-config/5-locale.sh @@ -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 \ No newline at end of file