diff options
author | Bruce Momjian | 1999-12-18 04:04:24 +0000 |
---|---|---|
committer | Bruce Momjian | 1999-12-18 04:04:24 +0000 |
commit | fd96e1754c06df9abb98e496f41b92a82e7c4def (patch) | |
tree | df03a95fe57d6927e05b876b53b417d466e7b86d | |
parent | 12118301fda12a4cff6ede7bbfbb4891cd278620 (diff) |
Finally initdb.sh works. Was problem with assuming EUID was defined.
-rw-r--r-- | src/bin/initdb/initdb.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index af05da6c6fb..a2bd83523a3 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_' |