diff options
author | kwadronaut <kwadronaut@leap.se> | 2017-05-19 23:41:57 +0200 |
---|---|---|
committer | kwadronaut <kwadronaut@leap.se> | 2017-05-19 23:42:41 +0200 |
commit | 26be1f84de9efabf5fec1278401ae0c5538454d9 (patch) | |
tree | 97b1c8dd73dc32852fc7b87d5c0e92a07eb59629 | |
parent | 746601becc47fcee9fc85700f175a5b33b310979 (diff) |
makes sure locales packages is installed before locale-gen fixes #8649
-rwxr-xr-x | bin/node_init | 10 |
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 # |