summary refs log tree commit diff
path: root/pkgs/servers/search/elasticsearch/es-home.patch
blob: d75a5a8c052fcc0766cdf73088ba2d14a4e32e24 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
diff -rc elasticsearch-0.90.3/bin/elasticsearch elasticsearch-0.90.3-new/bin/elasticsearch
*** elasticsearch-0.90.3/bin/elasticsearch	2013-08-06 15:19:22.000000000 +0200
--- elasticsearch-0.90.3-new/bin/elasticsearch	2013-08-27 16:42:00.935880011 +0200
***************
*** 62,68 ****
  done
  
  # determine elasticsearch home
! ES_HOME=`dirname "$SCRIPT"`/..
  
  # make ELASTICSEARCH_HOME absolute
  ES_HOME=`cd "$ES_HOME"; pwd`
--- 62,71 ----
  done
  
  # determine elasticsearch home
! if [ -z "$ES_HOME" ]; then
!     echo "You must set the ES_HOME var" >&2
!     exit 1
! fi
  
  # make ELASTICSEARCH_HOME absolute
  ES_HOME=`cd "$ES_HOME"; pwd`
diff -rc elasticsearch-0.90.3/bin/plugin elasticsearch-0.90.3-new/bin/plugin
*** elasticsearch-0.90.3/bin/plugin	2013-08-06 15:19:22.000000000 +0200
--- elasticsearch-0.90.3-new/bin/plugin	2013-08-27 16:49:01.024160295 +0200
***************
*** 16,22 ****
  done
  
  # determine elasticsearch home
! ES_HOME=`dirname "$SCRIPT"`/..
  
  # make ELASTICSEARCH_HOME absolute
  ES_HOME=`cd "$ES_HOME"; pwd`
--- 16,25 ----
  done
  
  # determine elasticsearch home
! if [ -z "$ES_HOME" ]; then
!     echo "You must set the ES_HOME var" >&2
!     exit 1
! fi
  
  # make ELASTICSEARCH_HOME absolute
  ES_HOME=`cd "$ES_HOME"; pwd`
***************
*** 46,50 ****
    shift
  done
  
! exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args
  
--- 49,53 ----
    shift
  done
  
! exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_CLASSPATH/lib/*" org.elasticsearch.plugins.PluginManager $args