allura
リビジョン | a96b42f3220ab4111d0a19c73546bbf1fc4cc21e (tree) |
---|---|
日時 | 2012-07-19 03:58:58 |
作者 | Dave Brondsema <dbrondsema@geek...> |
コミッター | Jenny Steele |
[#4539] move solr installation into the box setup
@@ -1,5 +1,18 @@ | ||
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | +# Install Solr | |
4 | +cd /home/vagrant/src | |
5 | +if [ ! -d apache-solr-1.4.1 ] | |
6 | +then | |
7 | + echo "Installing Solr..." | |
8 | + wget -q http://apache.mirrors.tds.net/lucene/solr/1.4.1/apache-solr-1.4.1.tgz | |
9 | + tar xf apache-solr-1.4.1.tgz && rm -f apache-solr-1.4.1.tgz | |
10 | + cd apache-solr-1.4.1/example/ | |
11 | + mkdir -p /home/vagrant/src/forge/solr_config/conf | |
12 | + cp solr/conf/solrconfig.xml /home/vagrant/src/forge/solr_config/conf/ | |
13 | + chown -R vagrant:vagrant /home/vagrant/src/apache-solr* /home/vagrant/src/forge/solr_config/conf/ | |
14 | +fi | |
15 | + | |
3 | 16 | # Create log dir |
4 | 17 | if [ ! -d /var/log/allura ] |
5 | 18 | then |
@@ -12,18 +12,6 @@ then | ||
12 | 12 | fi |
13 | 13 | echo "Logs are in /var/log/allura" |
14 | 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 | - | |
27 | 15 | # Start solr |
28 | 16 | if pgrep -f solr.*start.jar >/dev/null |
29 | 17 | then |