mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-21 18:21:07 +01:00
Add: Timeout variable on test
This commit is contained in:
parent
b9cfee1fc6
commit
317e65811a
3
test
3
test
@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
TMP=/tmp/wordpress
|
||||
TIMEOUT=120
|
||||
|
||||
tear_down () {
|
||||
docker-compose stop
|
||||
@ -24,7 +25,7 @@ echo -n "Espera al servidor web "
|
||||
while ! curl -s localhost:12001 > /dev/null; do
|
||||
echo -n "."
|
||||
cont=$((cont+1))
|
||||
if [ "$cont" == 30 ]; then
|
||||
if [ "$cont" == $TIMEOUT ]; then
|
||||
echo " no responde"
|
||||
tear_down
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user