mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-22 10:41:05 +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
|
#!/bin/bash
|
||||||
|
|
||||||
TMP=/tmp/wordpress
|
TMP=/tmp/wordpress
|
||||||
|
TIMEOUT=120
|
||||||
|
|
||||||
tear_down () {
|
tear_down () {
|
||||||
docker-compose stop
|
docker-compose stop
|
||||||
@ -24,7 +25,7 @@ echo -n "Espera al servidor web "
|
|||||||
while ! curl -s localhost:12001 > /dev/null; do
|
while ! curl -s localhost:12001 > /dev/null; do
|
||||||
echo -n "."
|
echo -n "."
|
||||||
cont=$((cont+1))
|
cont=$((cont+1))
|
||||||
if [ "$cont" == 30 ]; then
|
if [ "$cont" == $TIMEOUT ]; then
|
||||||
echo " no responde"
|
echo " no responde"
|
||||||
tear_down
|
tear_down
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user