Added locale generation to the installer
This commit is contained in:
parent
380ec41201
commit
3452e13f5e
24
install
24
install
|
@ -244,7 +244,7 @@ if [ -f /etc/airtime/airtime.conf ]; then
|
|||
service airtime-liquidsoap stop-with-monit
|
||||
verbose "...Done"
|
||||
|
||||
echo "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf\
|
||||
echo "Existing Airtime installation detected. Your current /etc/airtime/airtime.conf \
|
||||
will be moved to /etc/airtime/airtime.conf.bak"
|
||||
# If we don't remove the existing python files in /usr/lib and the
|
||||
# /etc/init.d startup scripts, services won't work properly
|
||||
|
@ -544,6 +544,28 @@ if [ "$install_dependencies" = "f" -a ${_i} -eq 1 ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
loud "\n-----------------------------------------------------"
|
||||
loud " * Installing Locales * "
|
||||
loud "-----------------------------------------------------"
|
||||
|
||||
set +e
|
||||
verbose "Generating locales"
|
||||
for i in `ls /usr/share/airtime/locale | grep ".._.."`; do
|
||||
if [ "$dist" = "Debian" ]; then
|
||||
grep -qi "^$i" /etc/locale.gen
|
||||
if [ $? -ne 0 ]; then
|
||||
verbose "$i.UTF-8 UTF-8" >> /etc/locale.gen
|
||||
fi
|
||||
else
|
||||
locale-gen "$i.utf8"
|
||||
fi
|
||||
done
|
||||
set -e
|
||||
|
||||
if [ "$dist" = "Debian" ]; then
|
||||
/usr/sbin/locale-gen
|
||||
fi
|
||||
|
||||
if [ "$install_dependencies" = "t" ]; then
|
||||
loud "\n-----------------------------------------------------"
|
||||
loud " * Installing External Dependencies * "
|
||||
|
|
Loading…
Reference in New Issue