Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 2129 Details for
Bug 4769
Postgresql install and init broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
User and initial database creation
postgresql.ebuild.diff (text/plain), 1.42 KB, created by
Andy Dustman
on 2002-07-10 16:08:26 UTC
(
hide
)
Description:
User and initial database creation
Filename:
MIME Type:
Creator:
Andy Dustman
Created:
2002-07-10 16:08:26 UTC
Size:
1.42 KB
patch
obsolete
>--- postgresql-7.2.1-r1.ebuild.orig Wed Jul 10 16:52:24 2002 >+++ postgresql-7.2.1-r1.ebuild Wed Jul 10 16:51:30 2002 >@@ -1,7 +1,7 @@ > # Copyright 1999-2002 Gentoo Technologies, Inc. > # Distributed under the terms of the GNU General Public License, v2 or later > # Author Geert Bevin <gbevin@theleaf.be> >-# /space/gentoo/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.2.1.ebuild,v 1.2 2002/06/17 04:05:39 rphillips Exp >+# $Header$ > > S=${WORKDIR}/${P} > DESCRIPTION="PostgreSQL is a sophisticated Object-Relational DBMS" >@@ -22,6 +22,7 @@ > nls? ( sys-devel/gettext )" > > RDEPEND="virtual/glibc >+ >=sys-apps/daemontools-0.76-r1 > >=sys-libs/zlib-1.1.3 > tcltk? ( >=dev-lang/tcl-8 ) > perl? ( >=sys-devel/perl-5.6.1-r2 ) >@@ -104,11 +105,11 @@ > } > > pkg_preinst() { >- if ! groupmod postgresql ; then >+ if ! groupmod postgres ; then > groupadd -g 70 postgres || die "problem adding group postgres" > fi > >- if ! id postgresql; then >+ if ! id postgres; then > useradd -g postgres -s /dev/null -d /var/lib/postgresql -c "postgres" postgres > assert "problem adding user postgres" > fi >@@ -169,7 +170,7 @@ > echo -n "A postgres data directory already exists from version "; cat /var/lib/postgresql/data/PG_VERSION > echo "Read the documentation to check how to upgrade to version ${PV}." > else >- su - postgres -c "/usr/bin/initdb --pgdata /var/lib/postgresql/data" >+ setuidgid postgres /usr/bin/initdb --pgdata /var/lib/postgresql/data > fi > > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4769
: 2129