Bash Add line to /etc/locale.gen instead of writing file

This commit is contained in:
François Jacquet 2019-09-23 15:38:15 +02:00
parent e6d27bcff9
commit 6321ffdd95

View File

@ -6,7 +6,7 @@ if [ "$ROSARIOSIS_LANG" == "en_US" ]; then
else
echo "Installing "$ROSARIOSIS_LANG
apt-get install locales
echo $ROSARIOSIS_LANG'.UTF-8 UTF-8' > /etc/locale.gen
echo $ROSARIOSIS_LANG'.UTF-8 UTF-8' >> /etc/locale.gen
locale-gen
fi