mirror of https://github.com/zulip/zulip.git
ci: Remove bullseye hack.
base-files 11.1 marked bullseye as Debian 11 in /etc/os-release. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
bf361e9951
commit
3b60b25446
|
@ -24,8 +24,6 @@ class zulip::profile::base {
|
||||||
/^9\.[0-9]*$/ => 'stretch',
|
/^9\.[0-9]*$/ => 'stretch',
|
||||||
/^10\.[0-9]*$/ => 'buster',
|
/^10\.[0-9]*$/ => 'buster',
|
||||||
/^11\.[0-9]*$/ => 'bullseye',
|
/^11\.[0-9]*$/ => 'bullseye',
|
||||||
# This next line is temporary until bullseye releases.
|
|
||||||
/bullseye\/sid/ => 'bullseye',
|
|
||||||
# Ubuntu releases
|
# Ubuntu releases
|
||||||
'12.04' => 'precise',
|
'12.04' => 'precise',
|
||||||
'14.04' => 'trusty',
|
'14.04' => 'trusty',
|
||||||
|
|
|
@ -220,8 +220,8 @@ case "$os_id$os_version_id" in
|
||||||
Unsupported OS release: $os_id $os_version_id
|
Unsupported OS release: $os_id $os_version_id
|
||||||
|
|
||||||
Zulip in production is supported only on:
|
Zulip in production is supported only on:
|
||||||
- Debian 11 "bullseye" (beta)
|
|
||||||
- Debian 10 "buster"
|
- Debian 10 "buster"
|
||||||
|
- Debian 11 "bullseye" (beta)
|
||||||
- Ubuntu 18.04 LTS "bionic"
|
- Ubuntu 18.04 LTS "bionic"
|
||||||
- Ubuntu 20.04 LTS "focal"
|
- Ubuntu 20.04 LTS "focal"
|
||||||
|
|
||||||
|
|
|
@ -426,11 +426,6 @@ def parse_os_release() -> Dict[str, str]:
|
||||||
continue
|
continue
|
||||||
k, v = line.split("=", 1)
|
k, v = line.split("=", 1)
|
||||||
[distro_info[k]] = shlex.split(v)
|
[distro_info[k]] = shlex.split(v)
|
||||||
if distro_info["PRETTY_NAME"] == "Debian GNU/Linux bullseye/sid":
|
|
||||||
# This hack can be removed once bullseye releases and reports
|
|
||||||
# its VERSION_ID in /etc/os-release.
|
|
||||||
distro_info["VERSION_CODENAME"] = "bullseye"
|
|
||||||
distro_info["VERSION_ID"] = "11"
|
|
||||||
return distro_info
|
return distro_info
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,37 +47,20 @@ tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
|
||||||
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
|
||||||
apt-get update
|
apt-get update
|
||||||
|
|
||||||
if [ -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-release
|
|
||||||
printf '%s\n' "$ID" "$VERSION_ID"
|
|
||||||
)"
|
|
||||||
{
|
|
||||||
read -r os_id
|
|
||||||
read -r os_version_id
|
|
||||||
} <<<"$os_info"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! apt-get dist-upgrade -y "${APT_OPTIONS[@]}"; then
|
if ! apt-get dist-upgrade -y "${APT_OPTIONS[@]}"; then
|
||||||
echo "\`apt-get dist-upgrade\`: Failure occurred while trying to perform distribution upgrade, Retrying..."
|
echo "\`apt-get dist-upgrade\`: Failure occurred while trying to perform distribution upgrade, Retrying..."
|
||||||
apt-get dist-upgrade -y "${APT_OPTIONS[@]}"
|
apt-get dist-upgrade -y "${APT_OPTIONS[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
os_info="$(
|
||||||
|
. /etc/os-release
|
||||||
|
printf '%s\n' "$ID" "$VERSION_ID"
|
||||||
|
)"
|
||||||
|
{
|
||||||
|
read -r os_id
|
||||||
|
read -r os_version_id
|
||||||
|
} <<<"$os_info"
|
||||||
|
|
||||||
# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it
|
# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it
|
||||||
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
|
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
|
||||||
export POSTGRESQL_VERSION=10
|
export POSTGRESQL_VERSION=10
|
||||||
|
|
Loading…
Reference in New Issue