1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00
This commit is contained in:
Florent Daigniere
2022-11-12 15:39:11 +01:00
parent 225322fe88
commit b488e57602

View File

@@ -2,5 +2,9 @@
IP="$(docker inspect webmail_webmail_1|jq -r '.[0].NetworkSettings.Networks.webmail_default.IPAddress')"
echo "webmail is on $IP" >/dev/stderr
wget -S -O - "http://$IP/" &>/dev/stderr
docker inspect webmail_webmail_1 &>/dev/stderr
[[ $(curl -I -so /dev/null -w "%{http_code}" http://$IP/) -ne 200 ]] && echo "The default page of snappymail hasn't returned 200!" >>/dev/stderr && exit 1
[[ $(curl -I -so /dev/null -w "%{http_code}" http://$IP/?admin) -ne 403 ]] && echo "The admin of snappymail is not disabled!" >>/dev/stderr && exit 1