Hi Stephen! Stephen Quinney [2005-06-08 15:10 +0100]: > jupiter:~# su - postgres > -su: /etc/postgresql/postmaster.conf: No such file or directory > > This is caused by a .profile in the homedir of the postgres user which > contains: > > . /etc/postgresql/postmaster.conf > PATH=/bin:/usr/bin:/usr/lib/postgresql/bin > POSTGRES_DATA=/var/lib/postgres/data > PGDATA=${POSTGRES_DATA:-/var/lib/postgres/data} > PGLIB=/usr/lib/postgresql/lib > export PGLIB PGDATA
Bah, I completely forgot about that one. That was a crude hack that should have never happened in the first place... Since this looks unmodified and thus worthless, just remove the file. > Now that the packages have moved to a different directory layout all > of this is basically incorrect. I'm not sure how important it is to > set these variables or how I would go about setting them correctly > depending on the version of the database to which I wanted to talk. These variables are not used at all any more. A cluster is selectd with --cluster, /etc/postgresql-common/user_clusters, and ~/.postgresqlrc (see postgresql-common(1)). So the only question is how to get rid of that file. I'm a bit reluctant to unconditionally delete it in the postinst since some admins might actually have customized it. So this probably requires some grep/sed/shell magic... Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org
signature.asc
Description: Digital signature