@@ -9,9 +9,9 @@ QW_BIN_RAW="${QUICKWIT_BIN:-quickwit}"
99read  -r -a QW_BIN_CMD <<< " ${QW_BIN_RAW}" 
1010API_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
1616fi 
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