1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-26 03:52:50 +02:00

Added a check for container status

This commit is contained in:
Ionut Filip 2018-10-04 17:37:09 +03:00
parent bc70be35c2
commit 027b8f36df

View File

@ -1,7 +1,8 @@
#!/bin/bash
containers_check() {
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
docker inspect $container | grep '"Status": "running"' || exit 1
echo "Checking $container"
docker inspect $container | grep '"Status": "running"' || exit 1
done
}