From 062e8b839eba3f990bf2ea7fb6300cfc1380940b Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 17 Aug 2014 10:08:36 -0400 Subject: [PATCH] failed network checks should result in start.sh exiting with a non-zero exit status --- setup/network-checks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/network-checks.sh b/setup/network-checks.sh index 7e091165..16c0caa8 100644 --- a/setup/network-checks.sh +++ b/setup/network-checks.sh @@ -11,7 +11,7 @@ if host $PRIMARY_HOSTNAME.dbl.spamhaus.org > /dev/null; then echo "You will not be able to send mail using this domain name, so" echo "setup cannot continue." echo - exit + exit 1 fi # Stop if the IPv4 address is listed in the ZEN Spamhouse Block List. @@ -31,7 +31,7 @@ if host $REVERSED_IPV4.zen.spamhaus.org > /dev/null; then echo "Many residential network IP addresses are listed, so Mail-in-a-Box" echo "typically cannot be used on a residential Internet connection." echo - exit + exit 1 fi # Stop if we cannot make an outbound connection on port 25. Many residential @@ -49,5 +49,5 @@ if ! nc -z -w5 aspmx.l.google.com 25; then echo "to Google's mail server on port 25 but the connection did not" echo "succeed." echo - exit + exit 1 fi