summaryrefslogtreecommitdiff
path: root/bin/node_init
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-08-23 13:34:07 -0700
committerMicah <micah@leap.se>2016-08-25 15:54:34 -0400
commit00f62b8a0e118dee569ad8f90e93009a4ded1487 (patch)
tree39a0f637b4f21532b5f7235f1363773c64927a9a /bin/node_init
parenta0113e33c9dfbb52c1865aa0001236822aa21a13 (diff)
locale improvements: allow non-english locales in node_init, enforce UTF8 locale for `puppet apply`.
Diffstat (limited to 'bin/node_init')
-rw-r--r--bin/node_init4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/node_init b/bin/node_init
index da250012..ea4c29c5 100644
--- a/bin/node_init
+++ b/bin/node_init
@@ -22,7 +22,9 @@ if ! egrep -q "$DEBIAN_VERSION" /etc/debian_version; then
exit 1
fi
mkdir -p $LEAP_DIR
-echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
+if ! grep -q -e '^en_US.UTF-8' /etc/locale.gen; then
+ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
+fi
#
# UPDATE PACKAGES