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

Commit fd96e17

Browse files
committed
Finally initdb.sh works. Was problem with assuming EUID was defined.
1 parent 1211830 commit fd96e17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/initdb/initdb.sh

Lines changed: 2 additions & 1 deletion
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.74 1999/12/18 03:31:14 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.75 1999/12/18 04:04:24 momjian Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -111,6 +111,7 @@ template_only=0
111111
# fail, and in that case the argument _must_ be the name of the effective
112112
# user.
113113
POSTGRES_SUPERUSERNAME="$EffectiveUser"
114+
POSTGRES_SUPERUSERID="`id -u 2>/dev/null || echo 0`"
114115

115116
Password='_null_'
116117

0 commit comments

Comments
 (0)