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

Commit8cfe27d

Browse files
author
Bryan Henderson
committed
OK, I think I've got the postconfig thing right now.
1 parent93f7225 commit8cfe27d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/bin/initdb/initdb.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.16 1996/11/25 05:51:50 bryanh Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.17 1996/11/26 08:12:39 bryanh Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -48,11 +48,13 @@ CMDNAME=`basename $0`
4848
# specify the pglib option. Postconfig may validly not exist, in which case
4949
# our invocation of it silently fails.
5050

51-
# The x=x below is to satisfy export if postconfig returns nothing.
5251
# The 2>/dev/null is to swallow the "postconfig: not found" message if there
53-
# isnot postconfig, but it is ineffective in some shells. Better ideas?
52+
# isno postconfig.
5453

55-
export x=x$(postconfig2>/dev/null)
54+
postconfig_result="$(sh -c postconfig2>/dev/null)"
55+
if [!-z$postconfig_result ];then
56+
export$postconfig_result
57+
fi
5658

5759
# Set defaults:
5860
debug=0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp