handle unix

This commit is contained in:
Christian Grothoff 2023-07-23 15:21:53 +02:00
parent da84b478f3
commit 7467543b57
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -649,7 +649,7 @@ then
echo -n "Wait for exchange /management/keys to be ready " echo -n "Wait for exchange /management/keys to be ready "
OK="0" OK="0"
LAST_RESPONSE=$(mktemp tmp-last-response.XXXXXXXX) LAST_RESPONSE=$(mktemp tmp-last-response.XXXXXXXX)
for n in $(seq 1 50) for n in $(seq 1 10)
do do
echo -n "." echo -n "."
sleep "$DEFAULT_SLEEP" sleep "$DEFAULT_SLEEP"
@ -657,8 +657,8 @@ then
wget \ wget \
--tries=3 \ --tries=3 \
--waitretry=0 \ --waitretry=0 \
--timeout=1 \ --timeout=30 \
"http://localhost:8081/management/keys"\ "${EXCHANGE_URL}management/keys"\
-o /dev/null \ -o /dev/null \
-O "$LAST_RESPONSE" \ -O "$LAST_RESPONSE" \
>/dev/null || continue >/dev/null || continue
@ -712,7 +712,7 @@ then
wget \ wget \
--tries=1 \ --tries=1 \
--timeout=1 \ --timeout=1 \
"http://localhost:8081/keys" \ "${EXCHANGE_URL}keys" \
-o /dev/null \ -o /dev/null \
-O "$LAST_RESPONSE" \ -O "$LAST_RESPONSE" \
>/dev/null || continue >/dev/null || continue