mirror of https://github.com/zulip/zulip.git
provision: Add support for Debian 10 Buster.
This commit is contained in:
parent
aae01f5795
commit
99414e2d96
|
@ -13,7 +13,7 @@ If you'd like to install a Zulip development environment on a computer
|
|||
that's running one of:
|
||||
|
||||
* Ubuntu 18.10 Cosmic, 18.04 Bionic, 16.04 Xenial, 14.04 Trusty
|
||||
* Debian 9 Stretch
|
||||
* Debian 9 Stretch or 10 Buster
|
||||
* Centos 7 (beta)
|
||||
* Fedora 29 (beta)
|
||||
* RHEL 7 (beta)
|
||||
|
|
|
@ -49,14 +49,14 @@ elif [ "$release" = "cosmic" ]; then
|
|||
deb http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
|
||||
deb-src http://ppa.launchpad.net/groonga/ppa/ubuntu $release main
|
||||
EOF
|
||||
elif [ "$release" = "stretch" ]; then
|
||||
elif [ "$release" = "stretch" ] || [ "$release" = "buster" ]; then
|
||||
apt-get install -y debian-archive-keyring
|
||||
apt-key add "$SCRIPTS_PATH"/setup/packagecloud.asc
|
||||
apt-key add "$SCRIPTS_PATH"/setup/pgroonga-debian.asc
|
||||
cat >$SOURCES_FILE <<EOF
|
||||
deb https://packagecloud.io/zulip/server/debian/ stretch main
|
||||
deb https://packages.groonga.org/debian/ stretch main
|
||||
deb-src https://packages.groonga.org/debian/ stretch main
|
||||
deb https://packagecloud.io/zulip/server/debian/ $release main
|
||||
deb https://packages.groonga.org/debian/ $release main
|
||||
deb-src https://packages.groonga.org/debian/ $release main
|
||||
EOF
|
||||
else
|
||||
echo "Unsupported release $release."
|
||||
|
|
|
@ -39,6 +39,7 @@ SUPPORTED_PLATFORMS = {
|
|||
],
|
||||
"Debian": [
|
||||
"stretch",
|
||||
"buster",
|
||||
],
|
||||
"CentOS": [
|
||||
"centos7",
|
||||
|
@ -128,6 +129,7 @@ if not (vendor in SUPPORTED_PLATFORMS and codename in SUPPORTED_PLATFORMS[vendor
|
|||
|
||||
POSTGRES_VERSION_MAP = {
|
||||
"stretch": "9.6",
|
||||
"buster": "11",
|
||||
"trusty": "9.3",
|
||||
"xenial": "9.5",
|
||||
"bionic": "10",
|
||||
|
@ -189,6 +191,22 @@ if vendor in ["Ubuntu", "Debian"]:
|
|||
"postgresql-server-dev-{0}",
|
||||
]
|
||||
]
|
||||
elif codename == "buster":
|
||||
# For platforms without a tsearch-extras package distributed
|
||||
# from our PPA or a pgroonga release, we need to build both
|
||||
# from source.
|
||||
BUILD_PGROONGA_FROM_SOURCE = True
|
||||
BUILD_TSEARCH_FROM_SOURCE = True
|
||||
SYSTEM_DEPENDENCIES = UBUNTU_COMMON_APT_DEPENDENCIES + [
|
||||
pkg.format(POSTGRES_VERSION) for pkg in [
|
||||
"postgresql-{0}",
|
||||
# Dependency for building tsearch_extras from source
|
||||
"postgresql-server-dev-{0}",
|
||||
# Dependency for building pgroonga from source
|
||||
"libgroonga-dev",
|
||||
"libmsgpack-dev",
|
||||
]
|
||||
]
|
||||
else:
|
||||
SYSTEM_DEPENDENCIES = UBUNTU_COMMON_APT_DEPENDENCIES + [
|
||||
pkg.format(POSTGRES_VERSION) for pkg in [
|
||||
|
|
Loading…
Reference in New Issue