Merge pull request #6033 from ffdixon/fix-bbb-conf-file-check

Check that HTML5_CONFIG file exists before scanning it
This commit is contained in:
Fred Dixon 2018-09-03 09:53:14 -04:00 committed by GitHub
commit 9524ea4165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -947,7 +947,8 @@ check_configuration() {
echo
fi
if grep \"enableListenOnly\".*true $HTML5_CONFIG > /dev/null; then
if [ -f $HTML5_CONFIG ]; then
if grep \"enableListenOnly\".*true $HTML5_CONFIG > /dev/null; then
if ! grep -q ws-binding $FREESWITCH_EXTERNAL ; then
echo "# Warning: You have enabled listen-only audio via Kurento"
echo "# but FreeSWITCH is not listening on port 5066. You should edit "
@ -957,6 +958,7 @@ check_configuration() {
echo "# and add a line that enables ws-binding on port 5066."
echo
fi
fi
fi
fi