Skip to content

Commit a59a699

Browse files
authored
Merge pull request #2 from ableco/test-error
Fix apt repo for postgresql-11
2 parents 30b015c + d2c0b51 commit a59a699

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: postgres-setup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
POSTGRES_VERSION=$1
33
MAX_CONNECTIONS=$2
44
if [ $POSTGRES_VERSION -ne 13 ]; then
5+
sudo apt-get install curl ca-certificates gnupg
6+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
7+
echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/postgresql-pgdg.list > /dev/null
58
sudo apt-get remove postgresql postgresql-13
69
sudo apt-get update
710
sudo apt-get install postgresql-$POSTGRES_VERSION postgresql-contrib-$POSTGRES_VERSION

0 commit comments

Comments
 (0)