Welcome to mirror list, hosted at ThFree Co, Russian Federation.

wait-for-services.sh « user_saml_shibboleth-php8.0 - github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c06b25839dd129fece0aa410b77c47f842517ecd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash

# wait for Jetty
for i in {1..300}
do
   nc -zw 5 localhost 4443
   IS_JETTY=$?
   if [ ${IS_JETTY} -eq 0 ]; then
     break
   fi
   sleep 1
done

# wait for IdP becoming ready
for i in {1..300}
do
   if curl -f --silent -I -k https://localhost:4443/idp/ > /dev/null ; then
     exit 0
     break
   fi
   sleep 1
done

echo "Jetty or IdP not ready"
exit 1