Skip to content

Commit

Permalink
Added locale generation to the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
dpsommer committed Jan 15, 2015
1 parent 380ec41 commit 3452e13
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 * "
Expand Down

0 comments on commit 3452e13

Please sign in to comment.