fix typo and error in rtpengine.init

fix typo and error:
./rtpengine.init: line 111: syntax error in conditional expression
./rtpengine.init: line 111: syntax error near `-a'
./rtpengine.init: line 111: `   if [[ -n "$REDIS" -a -n "$REDIS_DB" ]]'
pull/235/head
Sergey Lavrov 9 years ago
parent 2024f9e37a
commit cf39d07d73

@ -23,7 +23,7 @@ if [ -f /etc/sysconfig/rtpengine ]
then
. /etc/sysconfig/rtpengine
else
echo "Error: /etc/sysconfig/mediproxy-ng not present"
echo "Error: /etc/sysconfig/rtpengine not present"
exit -1
fi
@ -108,7 +108,7 @@ build_opts() {
OPTS+=" --port-max=$PORT_MAX"
fi
if [[ -n "$REDIS" -a -n "$REDIS_DB" ]]
if [ -n "$REDIS" -a -n "$REDIS_DB" ]
then
OPTS+=" --redis=$REDIS/$REDIS_DB"
fi

Loading…
Cancel
Save