Skip to content

Commit

Permalink
install psql 15 and 16
Browse files Browse the repository at this point in the history
  • Loading branch information
jburel committed Feb 22, 2024
1 parent c223764 commit aaaf61f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion linux/install_ubuntu2204.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e -u -x

OMEROVER=${OMEROVER:-latest}
PGVER=${PGVER:-pg14}
PGVER=${PGVER:-pg15}
ICEVER=${ICEVER:-ice36}

. settings.env
Expand Down
28 changes: 23 additions & 5 deletions linux/step01_ubuntu2204_pg_deps.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,25 @@
#!/bin/bash

#start-recommended
apt-get update
apt-get -y install postgresql
service postgresql start
#end-recommended
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
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
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
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt-get update
apt-get -y install postgresql-16
service postgresql start
fi

0 comments on commit aaaf61f

Please sign in to comment.