Red Hat Bugzilla – Bug 75156
Last modified: 2013-07-02 22:59:45 EDT
/etc/init.d/postgresql uses $PGDATA as a variable containing the path to the
database, but still hardcodes the database path if it has to init the database.
line 122, looks as follows:
su -l postgres -s /bin/sh -c "/usr/bin/initdb --pgdata=/var/lib/pgsql/data >
/dev/null 2>&1" < /dev/null
exchanging /var/lib/pgsql/data with $PGDATA might be a good idea. ;-)
Assigning to me.
This seems to have been fixed somewhere along the way --- the current
initscripts use $PGDATA appropriately AFAICS.