Skip to content

Commit 090f825

Browse files
author
Marcelo Milera
committed
Update apt package lists before installing postgres
1 parent b00fb28 commit 090f825

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

postgres-setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ POSTGRES_VERSION=$1
33
MAX_CONNECTIONS=$2
44
if [ $POSTGRES_VERSION -ne 13 ]; then
55
sudo apt-get remove postgresql postgresql-13
6+
sudo apt-get update
67
sudo apt-get install postgresql-$POSTGRES_VERSION postgresql-contrib-$POSTGRES_VERSION
78
sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/$POSTGRES_VERSION/main/postgresql.conf
89
fi

0 commit comments

Comments
 (0)