Merge pull request #119 from fmp-msu/fix/freeswitch-package-name

Fix freeswitch package names for languages with uppercase characters in the path
This commit is contained in:
chandi 2021-06-21 16:23:39 +02:00 committed by GitHub
commit 09a47e9e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ if [ "$SOUNDS_LANGUAGE" == "de-de-daedalus3" ]; then
fi
else
SOUNDS_PACKAGE=freeswitch-sounds-${SOUNDS_LANGUAGE}
SOUNDS_PACKAGE=$(echo "freeswitch-sounds-${SOUNDS_LANGUAGE}" | tr '[:upper:]' '[:lower:]')
if ! dpkg -s $SOUNDS_PACKAGE >/dev/null 2>&1; then
echo "sounds package for $SOUNDS_LANGUAGE not installed yet"
apt-get install $SOUNDS_PACKAGE