update kibana scripts for elastic auth

This commit is contained in:
m0duspwnens
2021-05-25 08:50:55 -04:00
parent bd301880ad
commit 5a1e8d9fe9
3 changed files with 9 additions and 8 deletions

View File

@@ -486,12 +486,13 @@ wait_for_web_response() {
url=$1
expected=$2
maxAttempts=${3:-300}
curlcmd=${4:-curl}
logfile=/root/wait_for_web_response.log
attempt=0
while [[ $attempt -lt $maxAttempts ]]; do
attempt=$((attempt+1))
echo "Waiting for value '$expected' at '$url' ($attempt/$maxAttempts)"
result=$(curl -ks -L $url)
result=$($curlcmd -ks -L $url)
exitcode=$?
echo "--------------------------------------------------" >> $logfile