avoid logging jq error while influx is starting

This commit is contained in:
Jason Ertel committed 2026-11-27 10:07:03 -05:00
1 parent df650478b2
commit 1ce378cc1b
1 file changed
+1 -1
+1 -1
View File
@@ -128,7 +128,7 @@ lookup_org_id_with_wait() {
wait=10
while [[ $attempts -lt $max_attempts ]]; do
response=$(request orgs?org=Security+Onion)
oid=$(echo "$response" | jq -r ".orgs[] | select(.name == \"Security Onion\").id")
oid=$(echo "$response" | jq -r ".orgs[]? | select(.name == \"Security Onion\").id")
if [[ -z $oid ]]; then
attempts=$((attempts+1))
log "Server does not appear to be running or fully initialized - will try again in $wait seconds ($attempts / $max_attempts)"