diff options
author | cjs <cjs> | 2002-07-18 01:40:07 +0000 |
---|---|---|
committer | cjs <cjs> | 2002-07-18 01:40:07 +0000 |
commit | 9469c2f42f531fcc281e70b521f8a50649397c75 (patch) | |
tree | 3470939ac548c24a344b25e118d06d3f7c0ab973 /databases | |
parent | ba4f67685c21c7cbb3af8f4f635b209cbbb53bf1 (diff) | |
download | pkgsrc-9469c2f42f531fcc281e70b521f8a50649397c75.tar.gz |
Don't hard-code PGHOME; get it from the passwd file.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/postgresql-server/files/pgsql.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/databases/postgresql-server/files/pgsql.sh b/databases/postgresql-server/files/pgsql.sh index 3b5e633e6ef..f3b3c5c64f7 100644 --- a/databases/postgresql-server/files/pgsql.sh +++ b/databases/postgresql-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: pgsql.sh,v 1.9 2002/04/05 16:23:23 jlam Exp $ +# $NetBSD: pgsql.sh,v 1.10 2002/07/18 01:40:07 cjs Exp $ # # PostgreSQL database rc.d control script # @@ -17,8 +17,6 @@ # "pgsql_flags" contains options for the PostgreSQL postmaster. See # postmaster(1) for possible options. -PGHOME="@PGHOME@" - if [ -f /etc/rc.subr ] then . /etc/rc.subr @@ -29,6 +27,8 @@ rcd_dir=`@DIRNAME@ $0` name="pgsql" rcvar=$name pgsql_user="@PGUSER@" +eval PGHOME="~$pgsql_user" + command="@PREFIX@/bin/postmaster" ctl_command="@PREFIX@/bin/pg_ctl" pidfile="${PGHOME}/data/postmaster.pid" |