Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45301

Summary: emerge postgresql-7.4.2 does not create data directory
Product: Gentoo Linux Reporter: Andy Kriger <andy.kriger>
Component: New packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED INVALID    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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 :)