mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Make sure thehive is up then soup by hitting api
This commit is contained in:
@@ -346,7 +346,7 @@ thehive_maint() {
|
|||||||
COUNT=0
|
COUNT=0
|
||||||
THEHIVE_CONNECTED="no"
|
THEHIVE_CONNECTED="no"
|
||||||
while [[ "$COUNT" -le 240 ]]; do
|
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
|
if [ $? -eq 0 ]; then
|
||||||
THEHIVE_CONNECTED="yes"
|
THEHIVE_CONNECTED="yes"
|
||||||
echo "connected!"
|
echo "connected!"
|
||||||
|
|||||||
Reference in New Issue
Block a user