summaryrefslogtreecommitdiff
path: root/bin/node_init
diff options
context:
space:
mode:
authorkwadronaut <kwadronaut@leap.se>2017-05-19 23:41:57 +0200
committerkwadronaut <kwadronaut@leap.se>2017-05-19 23:42:41 +0200
commit26be1f84de9efabf5fec1278401ae0c5538454d9 (patch)
tree97b1c8dd73dc32852fc7b87d5c0e92a07eb59629 /bin/node_init
parent746601becc47fcee9fc85700f175a5b33b310979 (diff)
makes sure locales packages is installed before locale-gen fixes #8649
Diffstat (limited to 'bin/node_init')
-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
#