Fix docBase in context.xml
authorDennis Schafroth <dennis@indexdata.com>
Thu, 15 Sep 2011 14:09:24 +0000 (14:09 +0000)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 15 Sep 2011 14:09:24 +0000 (14:09 +0000)
lui-solr.spec

index 1fb4989..4b74aa1 100644 (file)
@@ -1,7 +1,7 @@
 Summary: Local Unified Index (Solr) 
 Name: masterkey-lui-solr
 Version: 0.2.0
-Release: 1.indexdata
+Release: 2.indexdata
 License: IndexData
 Group: Applications/Internet
 Vendor: Index Data ApS <info@indexdata.dk>
@@ -50,7 +50,7 @@ mkdir -p                         ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/
 mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/lib/masterkey/lui/solr/data
 
 #tomcat context
-sed -e 's@docBase=".*"@docBase="%{_datadir}\/masterkey\/lui/solr"@g' etc/solr-tomcat-context.xml > ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/solr/lui-solr-context.xml
+sed -e 's@docBase=".*"@docBase="%{_datadir}\/masterkey\/lui\/solr\/war\/apache-solr-3.3.0.war"@g' etc/solr-tomcat-context.xml > ${RPM_BUILD_ROOT}/%{_sysconfdir}/masterkey/lui/solr/lui-solr-context.xml
 
 # Solr config
 sed -e 's@${solr.data.dir:.*}@${solr.data.dir:%{_localstatedir}\/lib\/masterkey\/lui\/solr\/data}@g' solr-conf/solrconfig.xml > ${RPM_BUILD_ROOT}/%{_datadir}/masterkey/lui/solr/conf/solrconfig.xml