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

Loading…
Cancel
Save