summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-09-01 23:57:18 +0000
committerwiz <wiz@pkgsrc.org>2000-09-01 23:57:18 +0000
commit49dfa3cb09136093ea213a25675dde926237aa98 (patch)
tree086914c23666d9d90439ba66109ef3aea077beee
parent6abbec0ba94ade804ab6a602f8c9c1053bb7c167 (diff)
downloadpkgsrc-49dfa3cb09136093ea213a25675dde926237aa98.tar.gz
Use @PREFIX@ instead of hardwired /usr/pkg (brrr)
-rw-r--r--databases/postgresql/files/pgsql.sh.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/databases/postgresql/files/pgsql.sh.tmpl b/databases/postgresql/files/pgsql.sh.tmpl
index 8b7c4c05158..9ef0e2228f7 100644
--- a/databases/postgresql/files/pgsql.sh.tmpl
+++ b/databases/postgresql/files/pgsql.sh.tmpl
@@ -1,6 +1,6 @@
#!/bin/sh
-# $NetBSD: pgsql.sh.tmpl,v 1.6 2000/07/14 04:44:12 jlam Exp $
+# $NetBSD: pgsql.sh.tmpl,v 1.7 2000/09/01 23:57:18 wiz Exp $
# FreeBSD Id: pgsql.sh.tmpl,v 1.3 1997/10/05 21:00:49 andreas Exp
# pgsql.sh - postgresql startup file for NetBSD
@@ -8,25 +8,25 @@
CMD=${1:-start}
USER=@PGUSER@
-if [ -x /usr/pkg/bin/postmaster -a -x /usr/pkg/bin/pg_ctl ]
+if [ -x @PREFIX@/bin/postmaster -a -x @PREFIX@/bin/pg_ctl ]
then
case ${CMD} in
start)
echo -n ' pgsql'
- su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl \
- -p /usr/pkg/bin/postmaster -o "-S -o -F" start \
+ su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl \
+ -p @PREFIX@/bin/postmaster -o "-S -o -F" start \
> @PGHOME@/errlog'
;;
stop)
- su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl stop \
+ su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl stop \
>> @PGHOME@/errlog'
;;
restart)
- su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl restart \
+ su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl restart \
>> @PGHOME@/errlog'
;;
status)
- su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl status'
+ su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl status'
;;
*)
echo "Unexpected argument: ${CMD}"