From 090f825f207000b88fc6928133c814d2e90cf82c Mon Sep 17 00:00:00 2001 From: Marcelo Milera Date: Thu, 11 Feb 2021 11:48:08 -0500 Subject: [PATCH] Update apt package lists before installing postgres --- postgres-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres-setup.sh b/postgres-setup.sh index 307e842..9fd5fa8 100755 --- a/postgres-setup.sh +++ b/postgres-setup.sh @@ -3,6 +3,7 @@ POSTGRES_VERSION=$1 MAX_CONNECTIONS=$2 if [ $POSTGRES_VERSION -ne 13 ]; then sudo apt-get remove postgresql postgresql-13 + sudo apt-get update sudo apt-get install postgresql-$POSTGRES_VERSION postgresql-contrib-$POSTGRES_VERSION sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/$POSTGRES_VERSION/main/postgresql.conf fi