postgresql/postgresql-bashprofile

7 lines
192 B
Plaintext
Raw Normal View History

# Get PGDATA from /etc/sysconfig/postgresql
if test -f /etc/sysconfig/postgresql; then
eval eval $(sed -n '/^POSTGRES_DATADIR=/s//PGDATA=/p' /etc/sysconfig/postgresql)
export PGDATA
fi