From fcff1f5d2c599b448e94a6f5ee7388829725c727 Mon Sep 17 00:00:00 2001 From: David Duque Date: Sat, 11 Apr 2020 19:12:40 +0100 Subject: [PATCH] Change environment to Debian 10 --- Vagrantfile | 7 ++++++- setup/preflight.sh | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 467fb95e..5f9d780f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,7 +2,12 @@ # vi: set ft=ruby : Vagrant.configure("2") do |config| - config.vm.box = "ubuntu/bionic64" + # Recreate our conditions + config.vm.box = "generic/debian10" + config.vm.provider "hyperv" do |v| + v.memory = 1024 + v.cpus = 1 + end # Network config: Since it's a mail server, the machine must be connected # to the public web. However, we currently don't want to expose SSH since diff --git a/setup/preflight.sh b/setup/preflight.sh index 2547c410..bb755f9e 100644 --- a/setup/preflight.sh +++ b/setup/preflight.sh @@ -7,9 +7,9 @@ if [[ $EUID -ne 0 ]]; then exit fi -# Check that we are running on Ubuntu 18.04 LTS (or 18.04.xx). -if [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/18\.04\.[0-9]/18.04/' `" != "Ubuntu 18.04 LTS" ]; then - echo "Mail-in-a-Box only supports being installed on Ubuntu 18.04, sorry. You are running:" +# Check that we are running on Debian GNU/Linux +if [ "`lsb_release -d | sed 's/.*:\s*//' | sed -r 's/ [[:digit:]]+ (.*)//' `" != "Debian GNU/Linux" ]; then + echo "Mail-in-a-Box only supports being installed on Debian (ideally, 10 or later), sorry. You are running:" echo lsb_release -d | sed 's/.*:\s*//' echo