|
a/vagrant/allura_setup.sh |
|
b/vagrant/allura_setup.sh |
|
... |
|
... |
17 |
# specific language governing permissions and limitations
|
17 |
# specific language governing permissions and limitations
|
18 |
# under the License.
|
18 |
# under the License.
|
19 |
|
19 |
|
20 |
# Install Solr
|
20 |
# Install Solr
|
21 |
cd /home/vagrant/src
|
21 |
cd /home/vagrant/src
|
22 |
if [ ! -d apache-solr-1.4.1 ]
|
22 |
if [ ! -d solr-4.2.1 ]
|
23 |
then
|
23 |
then
|
24 |
echo "Installing Solr..."
|
24 |
echo "Installing Solr..."
|
25 |
wget -nv http://archive.apache.org/dist/lucene/solr/1.4.1/apache-solr-1.4.1.tgz
|
25 |
wget -nv http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz
|
26 |
tar xf apache-solr-1.4.1.tgz && rm -f apache-solr-1.4.1.tgz
|
26 |
tar xf solr-4.2.1.tgz && rm -f solr-4.2.1.tgz
|
27 |
cd apache-solr-1.4.1/example/
|
27 |
cp -f allura/solr_config/schema.xml solr-4.2.1/example/solr/collection1/conf
|
28 |
mkdir -p /home/vagrant/src/allura/solr_config/conf
|
28 |
chown -R vagrant:vagrant /home/vagrant/src/solr-4.2.1
|
29 |
cp solr/conf/solrconfig.xml /home/vagrant/src/allura/solr_config/conf/
|
|
|
30 |
chown -R vagrant:vagrant /home/vagrant/src/apache-solr* /home/vagrant/src/allura/solr_config/conf/
|
|
|
31 |
fi
|
29 |
fi
|
32 |
|
30 |
|
33 |
# Create startup script
|
31 |
# Create startup script
|
34 |
if [ ! -f /home/vagrant/start_allura ]
|
32 |
if [ ! -f /home/vagrant/start_allura ]
|
35 |
then
|
33 |
then
|