summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/node_init10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/node_init b/bin/node_init
index 148ecc34..e86374b6 100755
--- a/bin/node_init
+++ b/bin/node_init
@@ -22,10 +22,6 @@ if ! egrep -q "$DEBIAN_VERSION" /etc/debian_version; then
exit 1
fi
mkdir -p $LEAP_DIR
-if ! grep -q -e '^en_US.UTF-8' /etc/locale.gen 2> /dev/null; then
- echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
- /usr/sbin/locale-gen
-fi
#
# UPDATE PACKAGES
@@ -83,6 +79,12 @@ if [[ $exit_code -ne 0 ]]; then
exit $exit_code
fi
+# need to have the locales package from above
+if ! grep -q -e '^en_US.UTF-8' /etc/locale.gen 2> /dev/null; then
+ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
+ /usr/sbin/locale-gen
+fi
+
#
# FINALIZE
#