Skip to content

Commit d296c28

Browse files
author
marcelomilera
authored
Merge pull request #1 from ableco/bugfix-update-apt-before-reinstalling-postgres
Update apt package lists before installing postgres
2 parents b00fb28 + 090f825 commit d296c28

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)