mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-24 11:05:29 +00:00
17 lines
260 B
Bash
17 lines
260 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
cat <(./dbench start) &
|
||
|
|
||
|
sleep 5
|
||
|
|
||
|
while ! [[ $i == 20 ]]
|
||
|
do
|
||
|
output=$( curl "http://localhost:8000" )
|
||
|
{ echo "Exit status of curl: $?"
|
||
|
} 1>&2
|
||
|
sleep 2
|
||
|
i=$((i + 1))
|
||
|
done
|
||
|
|
||
|
|
||
|
echo "${output}" | grep '<title> Login </title>' || exit 1
|