Skip to content

Commit

Permalink
Merge pull request #279 from jburel/pg_default_rocky
Browse files Browse the repository at this point in the history
recommend psql 14
  • Loading branch information
jburel authored Nov 15, 2023
2 parents d1930ff + 9e0a9c7 commit 399c8c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions linux/step01_rocky9_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if [ "$PGVER" = "pg13" ]; then
sed -i 's/ ident/ trust/g' /var/lib/pgsql/data/pg_hba.conf

elif [ "$PGVER" = "pg14" ]; then
#start-recommended-postgres
dnf -y install postgresql14-server postgresql14
if [ -f /.dockerenv ]; then
su - postgres -c "/usr/pgsql-14/bin/initdb -D /var/lib/pgsql/14/data --encoding=UTF8"
Expand All @@ -72,11 +73,10 @@ elif [ "$PGVER" = "pg14" ]; then
else
PGSETUP_INITDB_OPTIONS=--encoding=UTF8 /usr/pgsql-14/bin/postgresql-14-setup initdb
fi

sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/14/data/pg_hba.conf
sed -i 's/ ident/ trust/g' /var/lib/pgsql/14/data/pg_hba.conf
#end-recommended-postgres
elif [ "$PGVER" = "pg15" ]; then
#start-recommended-postgres
dnf -y install postgresql15-server postgresql15
if [ -f /.dockerenv ]; then
su - postgres -c "/usr/pgsql-15/bin/initdb -D /var/lib/pgsql/15/data --encoding=UTF8"
Expand All @@ -88,7 +88,6 @@ elif [ "$PGVER" = "pg15" ]; then
fi
sed -i.bak -re 's/^(host.*)ident/\1md5/' /var/lib/pgsql/15/data/pg_hba.conf
sed -i 's/ ident/ trust/g' /var/lib/pgsql/15/data/pg_hba.conf
#end-recommended-postgres
elif [ "$PGVER" = "pg16" ]; then
dnf -y install postgresql16-server postgresql16
if [ -f /.dockerenv ]; then
Expand Down
2 changes: 1 addition & 1 deletion linux/test/rockylinux9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ MAINTAINER [email protected]
ARG OMEROVER=latest
ARG JAVAVER=openjdk11
ARG ICEVER=ice36
ARG PGVER=pg15
ARG PGVER=pg14

RUN touch /.dockerenv
ADD omero-install-test.zip /
Expand Down

0 comments on commit 399c8c3

Please sign in to comment.