From e41df28bf21790fbd420e27d9e92657547a5c327 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Sun, 29 Mar 2015 10:32:17 -0400 Subject: [PATCH] if a migration fails, dont continue setup --- setup/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/start.sh b/setup/start.sh index 72c364c8..ca461656 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -27,7 +27,7 @@ export LC_TYPE=en_US.UTF-8 if [ -f /etc/mailinabox.conf ]; then # Run any system migrations before proceeding. Since this is a second run, # we assume we have Python already installed. - setup/migrate.py --migrate + setup/migrate.py --migrate || exit 1 # Load the old .conf file to get existing configuration options loaded # into variables with a DEFAULT_ prefix.