From 77d5a382c6c5ad04692b4e91680006aef3cec85b Mon Sep 17 00:00:00 2001 From: Andy Witter Date: Fri, 1 Sep 2017 11:04:46 -0400 Subject: [PATCH] fix bug modifying SIP xml file --- GenaSYS.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GenaSYS.sh b/GenaSYS.sh index 3655073..b298d79 100755 --- a/GenaSYS.sh +++ b/GenaSYS.sh @@ -2650,8 +2650,8 @@ if [ -e "${CUSTOMDIR}/oils_sip.xml" ] then cp -f "${CUSTOMDIR}/oils_sip.xml" "${TMPFOLDER}" #sed -i "/<\/listeners>/a \\\t<\!-- One or more Memecache servers are required for Mulitplex mode. -->\n\t<\!-- Cache server(s) are ignored in non-Multiplex mode -->\n\t\n\t\ \$MEMCACHE01_IP:11211\n\t\ \$MEMCACHE02_IP:11211\n\t" "${TMPFOLDER}/oils_sip.xml" - sed -i "//d" $SIP_XML - sed -i "//a \\\t$MEMCACHE01_IP:11211\n\t$MEMCACHE02_IP:11211" "$SIP_XML" + sed -i "//d" "${TMPFOLDER}/oils_sip.xml" + sed -i "//a \\\t$MEMCACHE01_IP:11211\n\t$MEMCACHE02_IP:11211" "${TMPFOLDER}/oils_sip.xml" else echo echo -e ${COL_RED} "WARNING!!" ${COL_RESET} ${COL_GREEN} "oils_sip.xml" ${COL_RESET} "was not found in ${CUSTOMDIR}" -- 2.11.0