install: Support Debian 12.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-05-10 14:20:46 -07:00
committed by Tim Abbott
parent 16dedb08fd
commit 12310189ed
12 changed files with 75 additions and 6 deletions

View File

@@ -219,7 +219,7 @@ if [ -f /etc/os-release ]; then
fi
case "$os_id $os_version_id" in
'debian 11' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;
'debian 11' | 'debian 12' | 'ubuntu 20.04' | 'ubuntu 22.04') ;;
*)
set +x
cat <<EOF
@@ -228,6 +228,7 @@ Unsupported OS release: $os_id $os_version_id
Zulip in production is supported only on:
- Debian 11
- Debian 12
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS

View File

@@ -210,6 +210,7 @@ if os.path.exists("/etc/init.d/postgresql"):
if not postgresql_version:
default_postgresql_version = {
("debian", "11"): "13",
("debian", "12"): "15",
("ubuntu", "20.04"): "12",
("ubuntu", "22.04"): "14",
("centos", "7"): "11",

View File

@@ -0,0 +1,2 @@
deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main
deb-src http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main

View File

@@ -26,6 +26,10 @@ if [[ ! -e /usr/share/doc/groonga-apt-source/copyright ]]; then
read -r distribution
read -r release
} <<<"$os_info"
if [ "$distribution" = debian ] && [ "$release" = bookworm ]; then
# PGroonga binaries are not yet provided for Debian 12.
exit
fi
groonga_apt_source_deb="groonga-apt-source-latest-$release.deb"
groonga_apt_source_deb_sign="$groonga_apt_source_deb.asc.$pgroonga_apt_sign_key_fingerprint"
curl -fLO --retry 3 "https://packages.groonga.org/$distribution/$groonga_apt_source_deb"