nixpkgs/pkgs/servers/search/elasticsearch/es-home.patch

60 lines
1.7 KiB
Diff
Raw Normal View History

2013-08-27 17:58:46 +02:00
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
2013-03-07 12:36:29 +01:00
***************
*** 62,68 ****
done
# determine elasticsearch home
! ES_HOME=`dirname "$SCRIPT"`/..
# make ELASTICSEARCH_HOME absolute
ES_HOME=`cd "$ES_HOME"; pwd`
2013-08-27 17:58:46 +02:00
--- 62,71 ----
2013-03-07 12:36:29 +01:00
done
# determine elasticsearch home
2013-08-27 17:58:46 +02:00
! if [ -z "$ES_HOME" ]; then
! echo "You must set the ES_HOME var" >&2
! exit 1
! fi
2013-03-07 12:36:29 +01:00
# make ELASTICSEARCH_HOME absolute
ES_HOME=`cd "$ES_HOME"; pwd`
2013-08-27 17:58:46 +02:00
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