Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit040bb78

Browse files
committed
Install the sample pg_ident.conf file into /home/postgres/testversion/data, just like pg_hba.conf.
1 parent74299f6 commit040bb78

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/2101:11:49 tgl Exp $
27+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.116 2000/11/2120: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
forvarin 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-
forPREREQ_FILEin"$TEMPLATE1_BKI""$GLOBAL_BKI""$PG_HBA_SAMPLE"
359+
forPREREQ_FILEin"$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)

[8]ページ先頭

©2009-2025 Movatter.jp