summaryrefslogtreecommitdiffstats
path: root/charts/aai-elasticsearch/resources/bin/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'charts/aai-elasticsearch/resources/bin/run.sh')
-rw-r--r--charts/aai-elasticsearch/resources/bin/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/charts/aai-elasticsearch/resources/bin/run.sh b/charts/aai-elasticsearch/resources/bin/run.sh
new file mode 100644
index 0000000..a612c74
--- /dev/null
+++ b/charts/aai-elasticsearch/resources/bin/run.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# Wait for ES to start then initialize SearchGuard
+/usr/local/bin/docker-entrypoint.sh eswrapper &
+/usr/share/elasticsearch/bin/wait_until_started.sh
+/usr/share/elasticsearch/bin/init_sg.sh
+
+wait \ No newline at end of file