make cortex_init and hive_init time out after 1 minutes vs 5 minutes

This commit is contained in:
m0duspwnens
2021-10-26 08:39:30 -04:00
parent 0c679b62b2
commit fa2edb2b59
2 changed files with 4 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ cortex_init(){
CORTEX_ORG_USER_KEY="{{CORTEXORGUSERKEY}}"
SOCTOPUS_CONFIG="$default_salt_dir/salt/soctopus/files/SOCtopus.conf"
if wait_for_web_response $CORTEX_URL "Cortex"; then
if wait_for_web_response $CORTEX_URL "Cortex" 60; then
# Migrate DB
curl -sk -XPOST -L "$CORTEX_API_URL/maintenance/migrate"
@@ -65,7 +65,7 @@ if [ -f /opt/so/state/cortex.txt ]; then
cortex_clean
exit 0
else
if wait_for_web_response http://{{MANAGERIP}}:9400/_cluster/health '"status":"green"'; then
if wait_for_web_response http://{{MANAGERIP}}:9400/_cluster/health '"status":"green"' 60; then
cortex_init
cortex_clean
else