CC-4797: Generate localization locales on install

-added check for Debian
This commit is contained in:
denise 2013-01-15 15:22:10 -05:00
parent 3d6336cae7
commit d5f36dad1c
1 changed files with 12 additions and 1 deletions

View File

@ -7,8 +7,19 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
dist=`lsb_release -is`
echo "Generating locales"
for i in `ls /usr/share/airtime/locale | grep ".._.."`; do locale-gen "$i.utf8"; done
for i in `ls /usr/share/airtime/locale | grep ".._.."`; do
if [ "$dist" = "Debian" ]; then
echo "$i.UTF-8 UTF-8" >> /etc/locale.gen
else
locale-gen "$i.utf8"
fi
done
if [ "$dist" = "Debian" ]; then
/usr/sbin/locale-gen
fi
# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=`readlink -f $0`