We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fae0730 + a59a699 commit 6c79af6Copy full SHA for 6c79af6
postgres-setup.sh
@@ -2,6 +2,9 @@
2
POSTGRES_VERSION=$1
3
MAX_CONNECTIONS=$2
4
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
8
sudo apt-get remove postgresql postgresql-13
9
sudo apt-get update
10
sudo apt-get install postgresql-$POSTGRES_VERSION postgresql-contrib-$POSTGRES_VERSION
0 commit comments