18.04 support

This commit is contained in:
Girish Ramakrishnan
2018-10-05 10:27:34 -07:00
parent f660947594
commit 64f98aca5a
2 changed files with 3 additions and 3 deletions

View File

@@ -91,8 +91,9 @@ if [[ ${EUID} -ne 0 ]]; then
fi
# Only --help works with mismatched ubuntu
if [[ $(lsb_release -rs) != "16.04" ]]; then
echo "Cloudron requires Ubuntu 16.04" > /dev/stderr
ubuntu_version=$(lsb_release -rs)
if [[ "${ubuntu_version}" != "16.04" && "${ubuntu_version}" != "18.04" ]]; then
echo "Cloudron requires Ubuntu 16.04 or 18.04" > /dev/stderr
exit 1
fi