mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
Support Ubuntu LTS point releases
This commit is contained in:
parent
ac8c0ae762
commit
60911515fd
@ -9,7 +9,7 @@
|
|||||||
if [ -z "$TAG" ]; then
|
if [ -z "$TAG" ]; then
|
||||||
# Make s
|
# Make s
|
||||||
OS=`lsb_release -d | sed 's/.*:\s*//'`
|
OS=`lsb_release -d | sed 's/.*:\s*//'`
|
||||||
if [ "$OS" == "Debian GNU/Linux 10 (buster)" -o "$OS" == "Ubuntu 20.04 LTS" ]; then
|
if [ "$OS" == "Debian GNU/Linux 10 (buster)" -o "$(echo $OS | grep -o 'Ubuntu 20.04')" == "Ubuntu 20.04" ]; then
|
||||||
TAG=v0.46.POWER.4
|
TAG=v0.46.POWER.4
|
||||||
else
|
else
|
||||||
echo "This script must be run on a system running Debian 10 OR Ubuntu 20.04 LTS."
|
echo "This script must be run on a system running Debian 10 OR Ubuntu 20.04 LTS."
|
||||||
|
@ -7,9 +7,9 @@ if [[ $EUID -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that we are running on Debian GNU/Linux
|
# Check that we are running on Debian GNU/Linux, or Ubuntu 20.04
|
||||||
OS=`lsb_release -d | sed 's/.*:\s*//' `
|
OS=`lsb_release -d | sed 's/.*:\s*//'`
|
||||||
if [ "$OS" != "Debian GNU/Linux 10 (buster)" -a "$OS" != "Ubuntu 20.04 LTS" ]; then
|
if [ "$OS" != "Debian GNU/Linux 10 (buster)" -a "$(echo $OS | grep -o 'Ubuntu 20.04')" != "Ubuntu 20.04" ]; 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 -d | sed 's/.*:\s*//'
|
lsb_release -d | sed 's/.*:\s*//'
|
||||||
|
Loading…
Reference in New Issue
Block a user