Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45301 - emerge postgresql-7.4.2 does not create data directory
Summary: emerge postgresql-7.4.2 does not create data directory
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-21 11:10 UTC by Andy Kriger
Modified: 2007-09-22 23:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Kriger 2004-03-21 11:10:52 UTC
postgresql requires a data directory to store dbs, logs, configs
after emerging postgresql-7.4.2, the postgres user is created correctly (yea!) and the /etc/conf.d/postgresql file contains settings for $PGDATA but the directory has not been created. 

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86" emerge postgresql-7.4.2

Actual Results:  
postgres is installed w/o a configured data directory

Expected Results:  
either emerge should create the directory indicated in /etc/conf.d/postgresql
(with ownership given to postgres:postgres and modlvl u=rwx) or emerge should
provide output informing the user that they need to create the directory and
setup the ownership and modlvl
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2004-03-21 12:28:47 UTC
postgresql ebuilds doesn't make it automacically.

If you want to create it, you can do this command:
# ebuild /var/db/pkg/dev-db/postgresql-7.4.2/postgresql-7.4.2.ebuild config

The message should appear after emerge postgresql.

I'm closing this bug. If you can't resolve this problem, feel free to reopen this bug :)