Skip to content

Commit 040bb78

Browse files
committed
Install the sample pg_ident.conf file into /home/postgres/testversion/data, just like pg_hba.conf.
1 parent 74299f6 commit 040bb78

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/bin/initdb/initdb.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#
2525
# Copyright (c) 1994, Regents of the University of California
2626
#
27-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.115 2000/11/21 01:11:49 tgl Exp $
27+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.116 2000/11/21 20:55:57 tgl Exp $
2828
#
2929
#-------------------------------------------------------------------------
3030

@@ -337,6 +337,7 @@ TEMPLATE1_DESCR="$datadir"/template1.description
337337
GLOBAL_DESCR="$datadir"/global.description
338338

339339
PG_HBA_SAMPLE="$datadir"/pg_hba.conf.sample
340+
PG_IDENT_SAMPLE="$datadir"/pg_ident.conf.sample
340341
POSTGRESQL_CONF_SAMPLE="$datadir"/postgresql.conf.sample
341342

342343
if [ "$show_setting" = yes ] || [ "$debug" = yes ]
@@ -345,7 +346,8 @@ then
345346
echo "Initdb variables:"
346347
for var in PGDATA datadir PGPATH TEMPFILE MULTIBYTE MULTIBYTEID \
347348
POSTGRES_SUPERUSERNAME POSTGRES_SUPERUSERID TEMPLATE1_BKI GLOBAL_BKI \
348-
TEMPLATE1_DESCR GLOBAL_DESCR POSTGRESQL_CONF_SAMPLE PG_HBA_SAMPLE ; do
349+
TEMPLATE1_DESCR GLOBAL_DESCR POSTGRESQL_CONF_SAMPLE \
350+
PG_HBA_SAMPLE PG_IDENT_SAMPLE ; do
349351
eval "echo ' '$var=\$$var"
350352
done
351353
fi
@@ -354,7 +356,8 @@ if [ "$show_setting" = yes ] ; then
354356
exit 0
355357
fi
356358

357-
for PREREQ_FILE in "$TEMPLATE1_BKI" "$GLOBAL_BKI" "$PG_HBA_SAMPLE"
359+
for PREREQ_FILE in "$TEMPLATE1_BKI" "$GLOBAL_BKI" "$PG_HBA_SAMPLE" \
360+
"$PG_IDENT_SAMPLE"
358361
do
359362
if [ ! -f "$PREREQ_FILE" ] ; then
360363
(
@@ -485,9 +488,11 @@ then
485488

486489
echo $short_version > "$PGDATA/PG_VERSION" || exit_nicely
487490

488-
cp "$PG_HBA_SAMPLE" "$PGDATA"/pg_hba.conf || exit_nicely
491+
cp "$PG_HBA_SAMPLE" "$PGDATA"/pg_hba.conf || exit_nicely
492+
cp "$PG_IDENT_SAMPLE" "$PGDATA"/pg_ident.conf || exit_nicely
489493
cp "$POSTGRESQL_CONF_SAMPLE" "$PGDATA"/postgresql.conf || exit_nicely
490-
chmod 0600 "$PGDATA"/pg_hba.conf "$PGDATA"/postgresql.conf
494+
chmod 0600 "$PGDATA"/pg_hba.conf "$PGDATA"/pg_ident.conf \
495+
"$PGDATA"/postgresql.conf
491496

492497
fi
493498

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy