Skip to content

Commit 19cee15

Browse files
Jason Boyerchrissharp123
authored andcommitted
LP2097308: Use PostgreSQL apt archive when necessary
Debian Buster has been moved to PostgreSQL's apt archive and removed from the primary repo. This will break fresh installs as the pgdg repo can't be added correctly. This patch will allow buster installations to work again and can be used as a template when other Debian PostgreSQL packages are archived before we stop supporting them. Signed-off-by: Jason Boyer <JBoyer@equinoxOLI.org> Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
1 parent 9131478 commit 19cee15

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Open-ILS/src/extras/install/Makefile.debian

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@ debian_sys_config:
3333

3434
# Adding this for installing versions from PostgreSQL community apt source
3535
debian_postgresql_repo:
36-
if test -z "$$(grep -R apt.postgresql.org /etc/apt/)" ; then \
36+
if test -z "$$(grep -R postgresql.org /etc/apt/)" ; then \
3737
mkdir -p --mode 0755 /etc/apt/keyrings ; \
38-
echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] http://apt.postgresql.org/pub/repos/apt/ $(RELEASE_CODENAME)-pgdg main" \
39-
> /etc/apt/sources.list.d/pgdg.list; \
4038
wget --quiet -O /etc/apt/keyrings/pgdg.asc https://www.postgresql.org/media/keys/ACCC4CF8.asc ; \
39+
if test "$(RELEASE_CODENAME)" = "buster" ; then \
40+
$(APT_TOOL) install apt-transport-https ; \
41+
echo "deb [signed-by=/etc/apt/trusted.gpg.d/pgdg.asc] https://apt-archive.postgresql.org/pub/repos/apt/ $(RELEASE_CODENAME)-pgdg main" \
42+
> /etc/apt/sources.list.d/pgdg.list; \
43+
else \
44+
echo "deb [signed-by=/etc/apt/keyrings/pgdg.asc] http://apt.postgresql.org/pub/repos/apt/ $(RELEASE_CODENAME)-pgdg main" \
45+
> /etc/apt/sources.list.d/pgdg.list; \
46+
fi ; \
4147
$(APT_TOOL) update ; \
4248
fi
4349

0 commit comments

Comments
 (0)