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

@@ -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"