From feb720b46318e55248fbddcbc2c8b799636b99c4 Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Fri, 2 Apr 2021 13:12:33 +0530 Subject: [PATCH] install: Add beta support for debian bullseye for production. This won't work on a real bullseye system until Bullseye actually officially releases. Fixes part of #17863. --- puppet/zulip/manifests/profile/base.pp | 1 + scripts/lib/install | 3 ++- tools/ci/production-install | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/puppet/zulip/manifests/profile/base.pp b/puppet/zulip/manifests/profile/base.pp index 1d86b33cde..e9e903a692 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/install index 0d2ffbe387..c1b721499b 100755 --- a/scripts/lib/install +++ b/scripts/lib/install @@ -196,7 +196,7 @@ if [ -f /etc/os-release ]; then fi case "$os_id$os_version_id" in - debian10 | ubuntu18.04 | ubuntu20.04) ;; + debian10 | debian11 | ubuntu18.04 | ubuntu20.04) ;; *) set +x cat <>/etc/os-release + echo "VERSION_ID=\"11\"" | tee -a >>/etc/os-release + fi + # End hack + os_info="$( . /etc/os-release printf '%s\n' "$VERSION_CODENAME"