mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 22:47:49 +02:00
make sure so-elasticsearch-query exits non-zero on failure
This commit is contained in:
@@ -1817,7 +1817,7 @@ create_intermediate_upgrade_verification_script() {
|
|||||||
|
|
||||||
while [[ $retry_count -lt $retries ]]; do
|
while [[ $retry_count -lt $retries ]]; do
|
||||||
# keep stderr with variable for logging
|
# keep stderr with variable for logging
|
||||||
cluster_versions=$(so-elasticsearch-query _nodes/_all/version --retry 5 --retry-delay 10 2>&1)
|
cluster_versions=$(so-elasticsearch-query _nodes/_all/version --retry 5 --retry-delay 10 --fail 2>&1)
|
||||||
local exit_status=$?
|
local exit_status=$?
|
||||||
|
|
||||||
if [[ $exit_status -ne 0 ]]; then
|
if [[ $exit_status -ne 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user