Fix script warnings on Ubuntu

This commit is contained in:
David 2021-07-03 22:50:49 +01:00
parent 63081c647a
commit 8cb60ecad7
No known key found for this signature in database
GPG key ID: 913FE0F2477D7D6B
2 changed files with 2 additions and 2 deletions

View file

@ -245,7 +245,7 @@ function get_os_code {
fi fi
elif [[ $ID == "Ubuntu" ]]; then elif [[ $ID == "Ubuntu" ]]; then
if [[ $VER == "20.04" ]]; then if [[ $VER == "20.04" ]]; then
echo $OS_DEBIAN_2004 echo $OS_UBUNTU_2004
return 0 return 0
fi fi
fi fi

View file

@ -10,7 +10,7 @@ if [[ $EUID -ne 0 ]]; then
fi fi
# Check that we are running on Debian GNU/Linux, or Ubuntu 20.04 # 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 "Mail-in-a-Box only supports being installed on Debian 10 or Ubuntu 20.04 LTS, sorry. You are running:"
echo echo
lsb_release -ds lsb_release -ds