summaryrefslogtreecommitdiff
path: root/bin/node_init
diff options
context:
space:
mode:
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