CC-4797: Generate localization locales on install
-added check on Debian before writing to /etc/locale.gen
This commit is contained in:
parent
b7fb7a4166
commit
da137addf8
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ dist=`lsb_release -is`
|
||||||
echo "Generating locales"
|
echo "Generating locales"
|
||||||
for i in `ls /usr/share/airtime/locale | grep ".._.."`; do
|
for i in `ls /usr/share/airtime/locale | grep ".._.."`; do
|
||||||
if [ "$dist" = "Debian" ]; then
|
if [ "$dist" = "Debian" ]; then
|
||||||
grep -q "$i" /etc/locale.gen
|
grep -qi "^$i" /etc/locale.gen
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "$i.UTF-8 UTF-8" >> /etc/locale.gen
|
echo "$i.UTF-8 UTF-8" >> /etc/locale.gen
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue