Skip to content

Commit

Permalink
make psql15 the recommended version for ubuntu 22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Feb 26, 2024
1 parent 62fe4f4 commit df463df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux/step01_ubuntu2204_pg_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
PGVER=${PGVER:-pg15}

if [ "$PGVER" = "pg14" ]; then
#start-recommended
apt-get update
apt-get -y install postgresql
service postgresql start
#end-recommended
elif [ "$PGVER" = "pg15" ]; then
#start-recommended
apt-get install -y gnupg
echo "deb http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get -y install postgresql-15
service postgresql start
#end-recommended
elif [ "$PGVER" = "pg16" ]; then
apt-get install -y gnupg
echo "deb http://apt.postgresql.org/pub/repos/apt jammy-pgdg main" > /etc/apt/sources.list.d/pgdg.list
Expand Down

0 comments on commit df463df

Please sign in to comment.