update,
This commit is contained in:
15
scripts/wait_server_ready.sh
Normal file
15
scripts/wait_server_ready.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
output=""
|
||||
|
||||
echo 'waiting for server startup'
|
||||
|
||||
while [[ "$output" != "helloworld "$1 ]]
|
||||
do
|
||||
output=$(curl https://$1.louislabs.com 2>/dev/null)
|
||||
sleep 1
|
||||
|
||||
echo 'sleep a while ...'
|
||||
done
|
||||
|
||||
echo 'server ready'
|
Reference in New Issue
Block a user