Skip to content

Commit 6c79af6

Browse files
committed
Merge branch 'main' of github.com:ableco/action-postgres-setup into main
2 parents fae0730 + a59a699 commit 6c79af6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)