Make sure thehive is up then soup by hitting api

This commit is contained in:
TOoSmOotH
2020-12-16 17:41:38 -05:00
parent 23110d3b33
commit 345710a48d

View File

@@ -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!"