Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8cfe27d

Browse files
author
Bryan Henderson
committed
OK, I think I've got the postconfig thing right now.
1 parent 93f7225 commit 8cfe27d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/bin/initdb/initdb.sh

+6-4
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-
# is not postconfig, but it is ineffective in some shells. Better ideas?
52+
# is no postconfig.
5453

55-
export x=x $(postconfig 2>/dev/null)
54+
postconfig_result="$(sh -c postconfig 2>/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)