diff options
Diffstat (limited to 'src/bin/initdb/initdb.sh')
| -rw-r--r-- | src/bin/initdb/initdb.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index 0202a7c72b..08fe399bfc 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -27,7 +27,7 @@ # Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group # Portions Copyright (c) 1994, Regents of the University of California # -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.192 2003/06/02 19:00:29 tgl Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.193 2003/07/04 16:41:21 tgl Exp $ # #------------------------------------------------------------------------- @@ -586,16 +586,12 @@ $ECHO_N "creating configuration files... "$ECHO_C cp "$PG_HBA_SAMPLE" "$PGDATA"/pg_hba.conf || exit_nicely cp "$PG_IDENT_SAMPLE" "$PGDATA"/pg_ident.conf || exit_nicely ( - cat "$POSTGRESQL_CONF_SAMPLE" - echo - echo - echo "#" - echo "# Locale settings" - echo "#" - echo "# (initialized by initdb -- may be changed)" + trigger="# These settings are initialized by initdb -- they may be changed" + sed -n "1,/$trigger/p" "$POSTGRESQL_CONF_SAMPLE" for cat in MESSAGES MONETARY NUMERIC TIME; do echo "LC_$cat = '`pg_getlocale $cat`'" done + sed -n "1,/$trigger/!p" "$POSTGRESQL_CONF_SAMPLE" ) > "$PGDATA"/postgresql.conf || exit_nicely chmod 0600 "$PGDATA"/pg_hba.conf "$PGDATA"/pg_ident.conf \ |
