CC-3791: Media Monitor crash when there are media files with non-ascii name in watched folder

-override LC_ALL=POSIX that happens on system bootup
This commit is contained in:
Martin Konecny 2012-05-14 18:35:20 -04:00
parent c24a8a2308
commit 92931f662f
2 changed files with 9 additions and 1 deletions

View file

@ -185,6 +185,14 @@ if [ "$DO_UPGRADE" -eq "0" ]; then
fi
set -e
echo "* Making sure /etc/default/locale is set properly"
update-locale
cat /etc/default/locale | grep -i "LANG=.*UTF-\?8"
if [ "$?" != "0" ]; then
echo "non UTF-8 default locale found in /etc/default/locale.".PHP_EOL;
exit 1
fi
$SCRIPTPATH/include/airtime-copy-files.sh
$SCRIPTPATH/include/airtime-initialize.sh $@