1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-26 02:57:04 +00:00

fix bootstrap.sh to not confuse the status checks about the latest version

This commit is contained in:
Joshua Tauberer 2019-01-09 09:03:43 -05:00
parent 29e77d25fc
commit cd3fb1b487

View File

@ -14,9 +14,10 @@ if [ -z "$TAG" ]; then
# in part because an upgrade is required before jumping to Ubuntu 18.04. # in part because an upgrade is required before jumping to Ubuntu 18.04.
# New users on Ubuntu 18 need to get the latest version number too. # New users on Ubuntu 18 need to get the latest version number too.
# #
# Also, the system status checks read this script for TAG= to get # Also, the system status checks read this script for TAG = to get
# the latest version, so the first TAG= line must be the one that # (without the space, but if we put it in a comment it would confuse
# we want to display in status checks. # the status checks!) 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*//' | sed 's/18\.04\.[0-9]/18.04/' `" == "Ubuntu 18.04 LTS" ]; then if [ "`lsb_release -d | sed 's/.*:\s*//' | sed 's/18\.04\.[0-9]/18.04/' `" == "Ubuntu 18.04 LTS" ]; then
# This machine is running Ubuntu 18.04. # This machine is running Ubuntu 18.04.
TAG=v0.30 TAG=v0.30