From 020b2c03613fb38bbcadb2dddd0d534239586309 Mon Sep 17 00:00:00 2001 From: euanmillar Date: Wed, 4 Dec 2024 17:24:40 +0000 Subject: [PATCH] remove elastic index creation --- setup.sh | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/setup.sh b/setup.sh index d8297ca530..428f9fc727 100755 --- a/setup.sh +++ b/setup.sh @@ -368,28 +368,6 @@ fi DOCKER_STARTED=1 echo "wait-on tcp:3447" && wait-on -l tcp:3447 echo "wait-on http://localhost:9200" && wait-on -l http://localhost:9200 -function create_elastic_index { - local body=$1 - local index_name=$2 - - local -i result=1 - local output - - output=$(curl -s -D- -m15 -w "%{http_code}" -X PUT "http://localhost:9200/$index_name" -H 'Content-Type: application/json' -d "$body") - - echo "${output}" - - if [[ "${output: -3}" -eq 200 ]]; then - result=0 - fi - - if ((result)); then - echo -e "\n${output::-3}\n" - fi - - return $result -} -create_elastic_index "{\"settings\":{\"number_of_replicas\":0}}" "ocrvs" echo "wait-on tcp:9200" && wait-on -l tcp:9200 echo "wait-on tcp:27017" && wait-on -l tcp:27017 echo "wait-on tcp:6379" && wait-on -l tcp:6379