You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-25 22:12:28 +02:00
Changed exit condition
This commit is contained in:
@@ -1,15 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
containers_check() {
|
containers_check() {
|
||||||
|
STATUS=0
|
||||||
for container in mailu_webmail_1 mailu_imap_1 mailu_smtp_1 mailu_antispam_1 mailu_admin_1 mailu_redis_1 mailu_antivirus_1 mailu_webdav_1 mailu_fetchmail_1 mailu_front_1; do
|
for container in mailu_webmail_1 mailu_imap_1 mailu_smtp_1 mailu_antispam_1 mailu_admin_1 mailu_redis_1 mailu_antivirus_1 mailu_webdav_1 mailu_fetchmail_1 mailu_front_1; do
|
||||||
echo "Checking $container"
|
echo "Checking $container"
|
||||||
docker inspect $container | grep '"Status": "running"' || exit 1
|
docker inspect $container | grep '"Status": "running"' || STATUS=1
|
||||||
done
|
done
|
||||||
|
return $STATUS
|
||||||
}
|
}
|
||||||
|
|
||||||
for file in tests/compose/*.env ; do
|
for file in tests/compose/*.env ; do
|
||||||
cp $file .env
|
cp $file .env
|
||||||
docker-compose -f tests/compose/run.yml up -d
|
docker-compose -f tests/compose/run.yml up -d
|
||||||
sleep 1m
|
sleep 1m
|
||||||
containers_check
|
containers_check || exit 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user