Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
install: Add beta support for debian bullseye for production.
Gaurav Pandeyfeb720b46318
diff --git a/puppet/zulip/manifests/profile/base.pp b/puppet/zulip/manifests/profile/base.ppindex 1d86b33cde9..e9e903a6920 100644--- a/puppet/zulip/manifests/profile/base.pp+++ b/puppet/zulip/manifests/profile/base.pp@@ -23,6 +23,7 @@ class zulip::profile::base {/^8\.[0-9]*$/ => 'jessie',/^9\.[0-9]*$/ => 'stretch',/^10\.[0-9]*$/ => 'buster',+ /^11\.[0-9]*$/ => 'bullseye',# Ubuntu releases'12.04' => 'precise','14.04' => 'trusty',diff --git a/scripts/lib/install b/scripts/lib/installindex 0d2ffbe387b..c1b721499b6 100755--- a/scripts/lib/install+++ b/scripts/lib/install@@ -196,7 +196,7 @@ if [ -f /etc/os-release ]; thenficase "$os_id$os_version_id" in- debian10 | ubuntu18.04 | ubuntu20.04) ;;+ debian10 | debian11 | ubuntu18.04 | ubuntu20.04) ;;*)set +xcat <<EOF@@ -204,6 +204,7 @@ case "$os_id$os_version_id" inUnsupported OS release: $os_id $os_version_idZulip in production is supported only on:+ - Debian 11 "bullseye" (beta)- Debian 10 "buster"- Ubuntu 18.04 LTS "bionic"- Ubuntu 20.04 LTS "focal"diff --git a/tools/ci/production-install b/tools/ci/production-installindex 764ffdfc8d3..f33e8764872 100755--- a/tools/ci/production-install+++ b/tools/ci/production-install@@ -11,6 +11,21 @@ APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-coapt-get updateif [ -f /etc/os-release ]; then+ # This is a temporary hack to test Debian Bullseye systems as+ # though Bullseye was already released, so we don't need to+ # change all of our scripts to parse bullseye/sid.+ check_pretty_name="$(+ . /etc/os-release+ printf '%s\n' "$PRETTY_NAME"+ )"+ { read -r pretty_name; } <<<"$check_pretty_name"++ if [ "$pretty_name" = "Debian GNU/Linux bullseye/sid" ]; then+ echo "VERSION_CODENAME=bullseye" | tee -a >>/etc/os-release+ echo "VERSION_ID=\"11\"" | tee -a >>/etc/os-release+ fi+ # End hack+os_info="$(. /etc/os-releaseprintf '%s\n' "$VERSION_CODENAME"