Skip to content

Commit

Permalink
Merge pull request #2 from ableco/test-error
Browse files Browse the repository at this point in the history
Fix apt repo for postgresql-11
  • Loading branch information
hector-able authored Apr 16, 2021
2 parents 30b015c + d2c0b51 commit a59a699
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postgres-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
POSTGRES_VERSION=$1
MAX_CONNECTIONS=$2
if [ $POSTGRES_VERSION -ne 13 ]; then
sudo apt-get install curl ca-certificates gnupg
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
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
sudo apt-get remove postgresql postgresql-13
sudo apt-get update
sudo apt-get install postgresql-$POSTGRES_VERSION postgresql-contrib-$POSTGRES_VERSION
Expand Down

0 comments on commit a59a699

Please sign in to comment.