Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78ae1fb

Browse files
committed
Pass --config to quickwit CLI calls
1 parent be91480 commit 78ae1fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎scripts/quickwit_bootstrap.sh‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ QW_BIN_RAW="${QUICKWIT_BIN:-quickwit}"
99
read -r -a QW_BIN_CMD <<<"${QW_BIN_RAW}"
1010
API_URI="${QUICKWIT_API_URL:-http://localhost:7280}"
1111

12-
if ! "${QW_BIN_CMD[@]}" --version >/dev/null 2>&1; then
12+
if ! "${QW_BIN_CMD[@]}" --config /quickwit/config/quickwit.yaml --version >/dev/null 2>&1; then
1313
echo "quickwit CLI not found. Install from https://quickwit.io/docs/reference/cli." >&2
14-
echo "(Tried to run: ${QW_BIN_RAW} --version)" >&2
14+
echo "(Tried to run: ${QW_BIN_RAW} --config /quickwit/config/quickwit.yaml --version)" >&2
1515
exit 1
1616
fi
1717

@@ -24,15 +24,15 @@ for index_file in "${INDEX_DIR}"/*.yaml; do
2424
[[ -f "${index_file}" ]] || continue
2525

2626
echo "Applying index config: ${index_file}" >&2
27-
if "${QW_BIN_CMD[@]}" index create \
27+
if "${QW_BIN_CMD[@]}" --config /quickwit/config/quickwit.yaml index create \
2828
--metastore-uri "${API_URI}" \
2929
--index-config "${index_file}"; then
3030
echo "✓ Created $(basename "${index_file}")" >&2
3131
continue
3232
fi
3333

3434
echo "Index may already exist, attempting update..." >&2
35-
"${QW_BIN_CMD[@]}" index update \
35+
"${QW_BIN_CMD[@]}" --config /quickwit/config/quickwit.yaml index update \
3636
--metastore-uri "${API_URI}" \
3737
--index-config "${index_file}"
3838
echo "✓ Updated $(basename "${index_file}")" >&2

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /