Begin support for Ubuntu LTS
This commit is contained in:
parent
de115fe01e
commit
b66ade73c8
3 changed files with 15 additions and 17 deletions
|
@ -7,23 +7,13 @@
|
||||||
#########################################################
|
#########################################################
|
||||||
|
|
||||||
if [ -z "$TAG" ]; then
|
if [ -z "$TAG" ]; then
|
||||||
# If a version to install isn't explicitly given as an environment
|
# Make s
|
||||||
# variable, then install the latest version. But the latest version
|
OS=`lsb_release -d | sed 's/.*:\s*//'`
|
||||||
# depends on the operating system. Existing Ubuntu 14.04 users need
|
if [ "$OS" == "Debian GNU/Linux 10 (buster)" -o "$OS" == "Ubuntu 20.04 LTS"]; then
|
||||||
# to be able to upgrade to the latest version supporting Ubuntu 14.04,
|
|
||||||
# in part because an upgrade is required before jumping to Ubuntu 18.04.
|
|
||||||
# New users on Ubuntu 18.04 need to get the latest version number too.
|
|
||||||
#
|
|
||||||
# Also, the system status checks read this script for TAG = (without the
|
|
||||||
# space, but if we put it in a comment it would confuse the status checks!)
|
|
||||||
# to get the latest version, so the first such line must be the one that we
|
|
||||||
# want to display in status checks.
|
|
||||||
if [ "`lsb_release -d | sed 's/.*:\s*//' `" == "Debian GNU/Linux 10 (buster)" ]; then
|
|
||||||
# This machine is running Ubuntu 18.04.
|
# This machine is running Ubuntu 18.04.
|
||||||
TAG=v0.44.POWER.5
|
TAG=v0.44.POWER.5
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "This script must be run on a system running Debian 10."
|
echo "This script must be run on a system running Debian 10 OR Ubuntu 20.04 LTS."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -215,4 +215,11 @@ function git_clone {
|
||||||
rm -rf $TMPPATH
|
rm -rf $TMPPATH
|
||||||
}
|
}
|
||||||
|
|
||||||
export PHP_VERSION="7.3" # Expected php version
|
OS=`lsb_release -d | sed 's/.*:\s*//' `
|
||||||
|
|
||||||
|
# Expected php version
|
||||||
|
if [ "$OS" == "Debian GNU/Linux 10 (buster)" ]; then
|
||||||
|
export PHP_VERSION="7.3"
|
||||||
|
elif [ "$OS" == "Ubuntu 20.04 LTS" ]; then
|
||||||
|
export PHP_VERSION="7.4"
|
||||||
|
fi
|
||||||
|
|
|
@ -8,8 +8,9 @@ if [[ $EUID -ne 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that we are running on Debian GNU/Linux
|
# Check that we are running on Debian GNU/Linux
|
||||||
if [ "`lsb_release -d | sed 's/.*:\s*//' `" != "Debian GNU/Linux 10 (buster)" ]; then
|
OS=`lsb_release -d | sed 's/.*:\s*//' `
|
||||||
echo "Mail-in-a-Box only supports being installed on Debian 10, sorry. You are running:"
|
if [ "$OS" != "Debian GNU/Linux 10 (buster)" -a "$OS" != "Ubuntu 20.04 LTS" ]; then
|
||||||
|
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 -d | sed 's/.*:\s*//'
|
lsb_release -d | sed 's/.*:\s*//'
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue