From 91991aa1712892b7862528f8d47e8a52415f740d Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Tue, 5 Sep 2023 15:08:52 +0200 Subject: [PATCH] Use https for Apt links instead of http All traffic to the apt repo should use https and not http, fix two http leftovers in the installation documentation. Reported-by: Edward Flanders Discussion: https://postgr.es/m/18085-da9a3df6f618a4fd@postgresql.org --- templates/pages/download/linux/debian.html | 2 +- templates/pages/download/linux/ubuntu.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/pages/download/linux/debian.html b/templates/pages/download/linux/debian.html index 2cfbd240..a866e0b6 100644 --- a/templates/pages/download/linux/debian.html +++ b/templates/pages/download/linux/debian.html @@ -46,7 +46,7 @@ To use the apt repository, follow these steps:
# Create the file repository configuration:
-sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
+sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
 
 # Import the repository signing key:
 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
diff --git a/templates/pages/download/linux/ubuntu.html b/templates/pages/download/linux/ubuntu.html
index 0539171a..6721b717 100644
--- a/templates/pages/download/linux/ubuntu.html
+++ b/templates/pages/download/linux/ubuntu.html
@@ -47,7 +47,7 @@ To use the apt repository, follow these steps:
 
 
# Create the file repository configuration:
-sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
+sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
 
 # Import the repository signing key:
 wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
-- 
2.39.5