16 lines
227 B
Bash
16 lines
227 B
Bash
#!/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'
|