aboutsummaryrefslogtreecommitdiffstats
path: root/components/aai-elasticsearch/resources/bin/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'components/aai-elasticsearch/resources/bin/run.sh')
-rw-r--r--components/aai-elasticsearch/resources/bin/run.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/aai-elasticsearch/resources/bin/run.sh b/components/aai-elasticsearch/resources/bin/run.sh
new file mode 100644
index 0000000..a612c74
--- /dev/null
+++ b/components/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