From 8cb60ecad7390c3d0be361395d73e599fdc084ab Mon Sep 17 00:00:00 2001 From: David Date: Sat, 3 Jul 2021 22:50:49 +0100 Subject: [PATCH] Fix script warnings on Ubuntu --- setup/functions.sh | 2 +- setup/preflight.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/functions.sh b/setup/functions.sh index ac7b796..d985283 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -245,7 +245,7 @@ function get_os_code { fi elif [[ $ID == "Ubuntu" ]]; then if [[ $VER == "20.04" ]]; then - echo $OS_DEBIAN_2004 + echo $OS_UBUNTU_2004 return 0 fi fi diff --git a/setup/preflight.sh b/setup/preflight.sh index e960c0d..39e737c 100644 --- a/setup/preflight.sh +++ b/setup/preflight.sh @@ -10,7 +10,7 @@ if [[ $EUID -ne 0 ]]; then fi # Check that we are running on Debian GNU/Linux, or Ubuntu 20.04 -if [ $(get_os_code) == $OS_UNSUPPORTED ]; then +if [ $(get_os_code) = $OS_UNSUPPORTED ]; then echo "Mail-in-a-Box only supports being installed on Debian 10 or Ubuntu 20.04 LTS, sorry. You are running:" echo lsb_release -ds