diff options
author | schmonz <schmonz@pkgsrc.org> | 2019-02-06 18:45:55 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2019-02-06 18:45:55 +0000 |
commit | 0afbf5db450542f60fa721b11cb2e666fefc41d0 (patch) | |
tree | d7e4373c484c3e0e355dcaeab5a07d95baaf2184 /databases/postgresql96-server | |
parent | a26bcba4f178d8aaafbaea9fc03d9828d901d96a (diff) | |
download | pkgsrc-0afbf5db450542f60fa721b11cb2e666fefc41d0.tar.gz |
${PGUSER} doesn't have read permission in every conceivable working
directory, which causes errors for several actions. But the caller's
working directory isn't needed for anything. cd into ${pgsql_home}
early, just after reading rc.conf. Bump PKGREVISION.
Diffstat (limited to 'databases/postgresql96-server')
-rw-r--r-- | databases/postgresql96-server/Makefile | 3 | ||||
-rw-r--r-- | databases/postgresql96-server/files/pgsql.sh | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/databases/postgresql96-server/Makefile b/databases/postgresql96-server/Makefile index ef054c320ef..c8b2eaf665f 100644 --- a/databases/postgresql96-server/Makefile +++ b/databases/postgresql96-server/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.3 2018/11/09 18:12:28 adam Exp $ +# $NetBSD: Makefile,v 1.4 2019/02/06 18:45:56 schmonz Exp $ PKGNAME= ${DISTNAME:C/-/96-server-/} +PKGREVISION= 1 COMMENT= PostgreSQL database server programs # mips has no TAS implementation diff --git a/databases/postgresql96-server/files/pgsql.sh b/databases/postgresql96-server/files/pgsql.sh index 6f3cc991f36..2b73cacdce0 100644 --- a/databases/postgresql96-server/files/pgsql.sh +++ b/databases/postgresql96-server/files/pgsql.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: pgsql.sh,v 1.1 2016/10/29 19:41:55 adam Exp $ +# $NetBSD: pgsql.sh,v 1.2 2019/02/06 18:45:56 schmonz Exp $ # # PostgreSQL database rc.d control script # @@ -45,6 +45,8 @@ elif [ -f /etc/rc.conf ]; then . /etc/rc.conf fi +cd "${pgsql_home}" + command_args="-w -s -D ${pgsql_home}/data -m fast -l ${pgsql_home}/errlog" if [ -n "${pgsql_flags}" ]; then command_args="${command_args} -o \\\"${pgsql_flags}\\\"" |