This commit is contained in:
louiscklaw
2025-01-31 20:54:19 +08:00
parent 5c584709c4
commit 7d470d6921
5 changed files with 79 additions and 0 deletions

View 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'