From c74bef12d2d444ccf2f6fe2898a065172fe12e41 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Tue, 29 Jul 2014 19:09:08 -0400 Subject: [PATCH] allow for network checks to be skips in setup while testing using SKIP_NETWORK_CHECKS=1 --- Vagrantfile | 1 + setup/start.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index a199f17..ea8464d 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,6 +22,7 @@ Vagrant.configure("2") do |config| export PUBLIC_IPV6=auto export PRIMARY_HOSTNAME=auto-easy export CSR_COUNTRY=US + #export SKIP_NETWORK_CHECKS=1 # Start the setup script. cd /vagrant diff --git a/setup/start.sh b/setup/start.sh index db05587..f065448 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -178,7 +178,9 @@ if [ "$PRIMARY_HOSTNAME" = "auto-easy" ]; then fi # Run some network checks to make sure setup on this machine makes sense. -. setup/network-checks.sh +if [ -z "$SKIP_NETWORK_CHECKS" ]; then + . setup/network-checks.sh +fi # Create the user named "user-data" and store all persistent user # data (mailboxes, etc.) in that user's home directory.