From cf39d07d73b6fd25b5ee2e5aba045594dd6dd415 Mon Sep 17 00:00:00 2001 From: Sergey Lavrov Date: Thu, 21 Apr 2016 03:17:21 +0300 Subject: [PATCH] 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" ]]' --- el/rtpengine.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/el/rtpengine.init b/el/rtpengine.init index 9bd441446..af39bdfdc 100644 --- a/el/rtpengine.init +++ b/el/rtpengine.init @@ -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