From fd96e1754c06df9abb98e496f41b92a82e7c4def Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 18 Dec 1999 04:04:24 +0000 Subject: [PATCH] Finally initdb.sh works. Was problem with assuming EUID was defined. --- src/bin/initdb/initdb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index af05da6c6f..a2bd83523a 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -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_'