24
24
#
25
25
# Copyright (c) 1994, Regents of the University of California
26
26
#
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 $
28
28
#
29
29
# -------------------------------------------------------------------------
30
30
@@ -337,6 +337,7 @@ TEMPLATE1_DESCR="$datadir"/template1.description
337
337
GLOBAL_DESCR=" $datadir " /global.description
338
338
339
339
PG_HBA_SAMPLE=" $datadir " /pg_hba.conf.sample
340
+ PG_IDENT_SAMPLE=" $datadir " /pg_ident.conf.sample
340
341
POSTGRESQL_CONF_SAMPLE=" $datadir " /postgresql.conf.sample
341
342
342
343
if [ " $show_setting " = yes ] || [ " $debug " = yes ]
345
346
echo " Initdb variables:"
346
347
for var in PGDATA datadir PGPATH TEMPFILE MULTIBYTE MULTIBYTEID \
347
348
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
349
351
eval " echo ' '$var =\$ $var "
350
352
done
351
353
fi
@@ -354,7 +356,8 @@ if [ "$show_setting" = yes ] ; then
354
356
exit 0
355
357
fi
356
358
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 "
358
361
do
359
362
if [ ! -f " $PREREQ_FILE " ] ; then
360
363
(
@@ -485,9 +488,11 @@ then
485
488
486
489
echo $short_version > " $PGDATA /PG_VERSION" || exit_nicely
487
490
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
489
493
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
491
496
492
497
fi
493
498
0 commit comments