summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-11-11 13:50:50 +0000
committerjoerg <joerg@pkgsrc.org>2008-11-11 13:50:50 +0000
commit5071092cb882dd82c7570895876a5b62c62a4af5 (patch)
tree7e402f9eb84ce6f1f4e563b6da9e3ecbdc903697 /databases
parente54f356e277cacc9d566dab24c6f31e1a6d8d71e (diff)
downloadpkgsrc-5071092cb882dd82c7570895876a5b62c62a4af5.tar.gz
Change to root before start/stop/initdb to make sure that the cwd can be
read by the postgres user. Bump revision.
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql83-server/Makefile3
-rw-r--r--databases/postgresql83-server/files/pgsql.sh6
2 files changed, 7 insertions, 2 deletions
diff --git a/databases/postgresql83-server/Makefile b/databases/postgresql83-server/Makefile
index ee5ef656f21..9e2a06df063 100644
--- a/databases/postgresql83-server/Makefile
+++ b/databases/postgresql83-server/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/03/04 12:43:44 adam Exp $
+# $NetBSD: Makefile,v 1.2 2008/11/11 13:50:50 joerg Exp $
PKGNAME= postgresql83-server-${BASE_VERS}
COMMENT= PostgreSQL database server programs
+PKGREVISION= 1
PKG_DESTDIR_SUPPORT= user-destdir
diff --git a/databases/postgresql83-server/files/pgsql.sh b/databases/postgresql83-server/files/pgsql.sh
index 327de64044b..e49dfd2e035 100644
--- a/databases/postgresql83-server/files/pgsql.sh
+++ b/databases/postgresql83-server/files/pgsql.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: pgsql.sh,v 1.1.1.1 2008/03/04 12:43:46 adam Exp $
+# $NetBSD: pgsql.sh,v 1.2 2008/11/11 13:50:50 joerg Exp $
#
# PostgreSQL database rc.d control script
#
@@ -65,6 +65,8 @@ pgsql_initdb()
{
initdb="@PG_PREFIX@/bin/initdb"
+ cd /
+
if [ ! -x ${initdb} ]; then
return 1
fi
@@ -89,6 +91,8 @@ pgsql_doit()
{
action=$1
+ cd /
+
case ${action} in
start|restart)
if [ -n "${pgsql_flags}" ]; then