1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-12 02:28:20 +02:00

Minor script flow restructure

This commit is contained in:
Tim Möhlmann 2018-10-06 16:12:05 +03:00
parent 42f557ff38
commit 59eb4a5a00
No known key found for this signature in database
GPG Key ID: AFABC30066A39335

View File

@ -18,11 +18,13 @@ if [ -z "$DOCKER_ORG" ]; then
fi
containers_check() {
sleep 1m
STATUS=0
for container in "${containers[@]}"; do
echo "Checking ${DOCKER_ORG}_${container}"
docker inspect "${DOCKER_ORG}_${container}" | grep '"Status": "running"' || STATUS=1
done
docker ps -a
return $STATUS
}
@ -47,8 +49,6 @@ die() {
for file in tests/compose/*.env ; do
cp $file .env
docker-compose -f tests/compose/run.yml -p $DOCKER_ORG up -d
sleep 1m
docker ps -a
container_logs
containers_check || die 1
clean