From 47c3350c10fbf00bcb4afe34028930f1962bd2a1 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 31 Jul 2016 10:03:43 -0500 Subject: [PATCH] [es] Fixed plugin installation after Alpine switch For #98 --- elasticsearch/start | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elasticsearch/start b/elasticsearch/start index 7ce5511c..0675a99d 100755 --- a/elasticsearch/start +++ b/elasticsearch/start @@ -69,13 +69,15 @@ if [ -n "$MIN_MASTERS" ]; then OPTS="$OPTS --discovery.zen.minimum_master_nodes=$MIN_MASTERS" fi +mkdir -p /conf/plugins OPTS="$OPTS --path.plugins=/conf/plugins" if [ -n "$PLUGINS" ]; then + PLUGIN_OPTS="-Des.path.conf=/conf -Des.path.plugins=/conf/plugins" for p in $(echo $PLUGINS | awk -v RS=, '{print}') do echo "Installing the plugin $p" - $ES_HOME/bin/plugin install $p + $ES_HOME/bin/plugin $PLUGIN_OPTS install $p -t 1m -b done else mkdir -p /conf/plugins