From e05bcff94c59c5ab0659d8c7239a783f9fcb1c27 Mon Sep 17 00:00:00 2001 From: Claudio Maggioni Date: Tue, 2 May 2023 21:36:23 +0200 Subject: [PATCH] added installation script, plugin works when installed --- install-on-ec.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 install-on-ec.sh diff --git a/install-on-ec.sh b/install-on-ec.sh new file mode 100755 index 0000000..054e454 --- /dev/null +++ b/install-on-ec.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -e + +ES_LOCATION="$HOME/bin/elasticsearch-8.6.2/" + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +cd "$SCRIPT_DIR" + +# Build the ingestor plugin +./gradlew build + +"${ES_LOCATION}/bin/elasticsearch-plugin" install --batch "file:///${SCRIPT_DIR}/build/distributions/ingest-lookup-8.6.2.zip" \ No newline at end of file