Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ableco/action-postgres-setup into main
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-able committed Apr 16, 2021
2 parents fae0730 + a59a699 commit 6c79af6
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 6c79af6

Please sign in to comment.