]> granicus.if.org Git - postgresql/commitdiff
Finally initdb.sh works. Was problem with assuming EUID was defined.
authorBruce Momjian <bruce@momjian.us>
Sat, 18 Dec 1999 04:04:24 +0000 (04:04 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 18 Dec 1999 04:04:24 +0000 (04:04 +0000)
src/bin/initdb/initdb.sh

index af05da6c6fb910fb779e0fc12f83c00a38497a82..a2bd83523a3414ad70564f2bb5138555a90d77d3 100644 (file)
@@ -26,7 +26,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.74 1999/12/18 03:31:14 momjian Exp $
+#    $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.75 1999/12/18 04:04:24 momjian Exp $
 #
 #-------------------------------------------------------------------------
 
@@ -111,6 +111,7 @@ template_only=0
 #       fail, and in that case the argument _must_ be the name of the effective
 #       user.
 POSTGRES_SUPERUSERNAME="$EffectiveUser"
+POSTGRES_SUPERUSERID="`id -u 2>/dev/null || echo 0`"
 
 Password='_null_'