mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 21:55:09 +00:00
19 lines
No EOL
455 B
Bash
19 lines
No EOL
455 B
Bash
#!/bin/bash
|
|
|
|
docker container ls | grep frappe
|
|
docker container ls | grep mariadb
|
|
docker container ls | grep redis-cache
|
|
docker container ls | grep redis-queue
|
|
docker container ls | grep redis-socketio
|
|
|
|
while ! [[ $i == 20 ]]
|
|
do
|
|
output=$( curl "http://localhost:8000" )
|
|
{ echo "Exit status of curl: $?"
|
|
} 1>&2
|
|
sleep 2
|
|
i=$((i + 1))
|
|
echo "${output}" | grep '<title> Login </title>' && exit
|
|
done
|
|
|
|
if ! [[ "$?" == 0 ]]; then exit 1; fi |