Fix script warnings on Ubuntu
This commit is contained in:
parent
63081c647a
commit
8cb60ecad7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue