Switch to unified view

a/vagrant/start_allura b/vagrant/start_allura
...
...
9
then
9
then
10
    sudo mkdir -p /var/log/allura
10
    sudo mkdir -p /var/log/allura
11
    sudo chown vagrant:vagrant /var/log/allura
11
    sudo chown vagrant:vagrant /var/log/allura
12
fi
12
fi
13
echo "Logs are in /var/log/allura"
13
echo "Logs are in /var/log/allura"
14
15
# Install Solr
16
cd /home/vagrant/src
17
if [ ! -d apache-solr-1.4.1 ]
18
then
19
    echo "Installing Solr..."
20
    wget -q http://apache.mirrors.tds.net/lucene/solr/1.4.1/apache-solr-1.4.1.tgz
21
    tar xf apache-solr-1.4.1.tgz && rm -f apache-solr-1.4.1.tgz
22
    cd apache-solr-1.4.1/example/
23
    mkdir -p /home/vagrant/src/forge/solr_config/conf
24
    cp solr/conf/solrconfig.xml /home/vagrant/src/forge/solr_config/conf/
25
fi
26
14
27
# Start solr
15
# Start solr
28
if pgrep -f solr.*start.jar >/dev/null
16
if pgrep -f solr.*start.jar >/dev/null
29
then
17
then
30
    echo "Solr is running."
18
    echo "Solr is running."