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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy