From 345710a48de13c239349da162c38bf82114b9fc6 Mon Sep 17 00:00:00 2001 From: TOoSmOotH Date: Wed, 16 Dec 2020 17:41:38 -0500 Subject: [PATCH] Make sure thehive is up then soup by hitting api --- salt/common/tools/sbin/soup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/soup b/salt/common/tools/sbin/soup index 7a15c733a..38e6a581d 100755 --- a/salt/common/tools/sbin/soup +++ b/salt/common/tools/sbin/soup @@ -346,7 +346,7 @@ thehive_maint() { COUNT=0 THEHIVE_CONNECTED="no" while [[ "$COUNT" -le 240 ]]; do - curl --output /dev/null --silent --head --fail -k "https://localhost/thehive" + curl --output /dev/null --silent --head --fail -k "https://localhost/thehive/api/alert" if [ $? -eq 0 ]; then THEHIVE_CONNECTED="yes" echo "connected!"