pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/postgresql83-server Change to root before st...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8f402d94bd5c
branches: trunk
changeset: 549954:8f402d94bd5c
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Nov 11 13:50:50 2008 +0000
description:
Change to root before start/stop/initdb to make sure that the cwd can be
read by the postgres user. Bump revision.
diffstat:
databases/postgresql83-server/Makefile | 3 ++-
databases/postgresql83-server/files/pgsql.sh | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r eb48b85e1df3 -r 8f402d94bd5c databases/postgresql83-server/Makefile
--- a/databases/postgresql83-server/Makefile Tue Nov 11 13:48:58 2008 +0000
+++ b/databases/postgresql83-server/Makefile Tue Nov 11 13:50:50 2008 +0000
@@ -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 -r eb48b85e1df3 -r 8f402d94bd5c databases/postgresql83-server/files/pgsql.sh
--- a/databases/postgresql83-server/files/pgsql.sh Tue Nov 11 13:48:58 2008 +0000
+++ b/databases/postgresql83-server/files/pgsql.sh Tue Nov 11 13:50:50 2008 +0000
@@ -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 @@
{
initdb="@PG_PREFIX@/bin/initdb"
+ cd /
+
if [ ! -x ${initdb} ]; then
return 1
fi
@@ -89,6 +91,8 @@
{
action=$1
+ cd /
+
case ${action} in
start|restart)
if [ -n "${pgsql_flags}" ]; then
Home |
Main Index |
Thread Index |
Old Index