elastic index names changed
This commit is contained in:
parent
1e19a849be
commit
5b06a67ad0
@ -591,21 +591,21 @@ postStart:
|
|||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
echo "[postStart] Loading index template from $TEMPLATE_PATH" >&2
|
echo "[postStart] Loading index template from $TEMPLATE_PATH" >&2
|
||||||
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/chat_v1_idx" \
|
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/chat" \
|
||||||
-u "$ES_USERNAME:$ES_PASSWORD" \
|
-u "$ES_USERNAME:$ES_PASSWORD" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-binary @"$TEMPLATE_PATH_1"; then
|
--data-binary @"$TEMPLATE_PATH_1"; then
|
||||||
echo "[postStart] ERROR: Failed to apply index template!" >&2
|
echo "[postStart] ERROR: Failed to apply index template!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/message_v1_idx" \
|
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/message" \
|
||||||
-u "$ES_USERNAME:$ELASTIC_PASSWORD" \
|
-u "$ES_USERNAME:$ELASTIC_PASSWORD" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-binary @"$TEMPLATE_PATH_2"; then
|
--data-binary @"$TEMPLATE_PATH_2"; then
|
||||||
echo "[postStart] ERROR: Failed to apply index template!" >&2
|
echo "[postStart] ERROR: Failed to apply index template!" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/user_v1_idx" \
|
if ! /usr/bin/curl --cacert "$CA_CERT" -X PUT "$ES_URL/user" \
|
||||||
-u "$ES_USERNAME:$ELASTIC_PASSWORD" \
|
-u "$ES_USERNAME:$ELASTIC_PASSWORD" \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
--data-binary @"$TEMPLATE_PATH_3"; then
|
--data-binary @"$TEMPLATE_PATH_3"; then
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user