From 929ef89a40eaf3cef8935b0cf43131a7513e288b Mon Sep 17 00:00:00 2001 From: Alice Chen Date: Thu, 9 Oct 2014 23:43:48 -0700 Subject: [PATCH] Revert "Update preflight.sh to support Ubuntu 12" This reverts commit 986b04a24201b010d74d37491dbc09dee0bc2f69. --- setup/preflight.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/preflight.sh b/setup/preflight.sh index 4c3bc613..be584221 100644 --- a/setup/preflight.sh +++ b/setup/preflight.sh @@ -8,8 +8,8 @@ if [[ $EUID -ne 0 ]]; then fi # Check that we are running on Ubuntu 14.04 LTS (or 14.04.xx). -if [ `lsb_release -d | sed 's/.*:\sUbuntu *//' | cut -d'.' -f1` -lt 12 ]; then - echo "Mail-in-a-Box only supports being installed on Ubuntu 12 and newer, sorry. You are running:" +if [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/14\.04\.[0-9]/14.04/' `" != "Ubuntu 14.04 LTS" ]; then + echo "Mail-in-a-Box only supports being installed on Ubuntu 14.04, sorry. You are running:" echo lsb_release -d | sed 's/.*:\s*//' echo