fix bug modifying SIP xml file
authorAndy Witter <awitter@georgialibraries.org>
Fri, 1 Sep 2017 15:04:46 +0000 (11:04 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Fri, 1 Sep 2017 15:04:46 +0000 (11:04 -0400)
GenaSYS.sh

index 3655073..b298d79 100755 (executable)
@@ -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<cache>\n\t\  \<server>$MEMCACHE01_IP:11211</server>\n\t\  \<server>$MEMCACHE02_IP:11211</server>\n\t</cache>" "${TMPFOLDER}/oils_sip.xml"
-       sed -i "/<server>/d" $SIP_XML
-       sed -i "/<cache>/a \\\t<server>$MEMCACHE01_IP:11211</server>\n\t<server>$MEMCACHE02_IP:11211</server>" "$SIP_XML"
+       sed -i "/<server>/d" "${TMPFOLDER}/oils_sip.xml"
+       sed -i "/<cache>/a \\\t<server>$MEMCACHE01_IP:11211</server>\n\t<server>$MEMCACHE02_IP:11211</server>" "${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}"