From: Andy Witter Date: Fri, 1 Sep 2017 15:04:46 +0000 (-0400) Subject: fix bug modifying SIP xml file X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=77d5a382c6c5ad04692b4e91680006aef3cec85b;p=contrib%2Fpines%2Fgenasys.git fix bug modifying SIP xml file --- 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}"