From 4c38c334d00b3c9c4c8f7c7070de0fa4930252d6 Mon Sep 17 00:00:00 2001 From: Stelios Voutsinas Date: Fri, 12 Jul 2024 11:22:32 -0700 Subject: [PATCH] Correct the pgdb-init-postgres script --- .../src/init/pgdb-init-postgres.sh | 2559 +---------------- 1 file changed, 11 insertions(+), 2548 deletions(-) diff --git a/docker/cadc-postgresql-dev/src/init/pgdb-init-postgres.sh b/docker/cadc-postgresql-dev/src/init/pgdb-init-postgres.sh index ef5cab8..ced7c47 100755 --- a/docker/cadc-postgresql-dev/src/init/pgdb-init-postgres.sh +++ b/docker/cadc-postgresql-dev/src/init/pgdb-init-postgres.sh @@ -1,2552 +1,15 @@ +#!/bin/bash +## this script runs on the container (as postgres) before the postgres server starts ## +VER=15 +PGBASE=/var/lib/pgsql/$VER +/usr/pgsql-${VER}/bin/initdb -D $PGBASE/data --encoding=UTF8 --lc-collate=C --lc-ctype=C - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - docker-base/cadc-postgresql-dev/src/init/pgdb-init-postgres.sh at 213f29ca0f2b1221d297aae49a6f47b15e4d4039 · opencadc/docker-base · GitHub - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - -
- Skip to content - - - - - - - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - -
- -
- - - - - - - - -
- - - - - -
- - - - - - - - - -
-
-
- - - - - - - - - - - - -
- -
- -
- -
- - - - / - - docker-base - - - Public -
- - -
- -
- - -
-
- -
-
- - - - -
- - - - - - -
- - - - - - - - - - - - - - - - - - -

Latest commit

 

History

History
executable file
·
16 lines (11 loc) · 427 Bytes

pgdb-init-postgres.sh

File metadata and controls

executable file
·
16 lines (11 loc) · 427 Bytes
-
- - - - -
- -
- -
-
- -
- -
-

Footer

- - - - -
-
- - - - - © 2024 GitHub, Inc. - -
- - -
-
- - - - - - - - - - - - - - - - - - - -
- -
-
- - - +## modified config files are provided by the container in the $PGBASE dir +for cf in $PGBASE/*.conf; do + FNAME=$(basename $cf) + \rm -f $PGBASE/data/$FNAME + ln -s $cf $PGBASE/data/$FNAME +done