summaryrefslogtreecommitdiff
path: root/databases/postgresql
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1999-01-04 14:10:16 +0000
committerfrueauf <frueauf@pkgsrc.org>1999-01-04 14:10:16 +0000
commit06d3c5cd67f4c7b88dd8caefc14950bff3811227 (patch)
treeb9362019d31e891b9d9bd16f31ba770af7736cea /databases/postgresql
parent64dd60cbebb946068470c36df69254bf1fc9e81e (diff)
downloadpkgsrc-06d3c5cd67f4c7b88dd8caefc14950bff3811227.tar.gz
Forgot to commit this: s/pgsql/!!PGUSER!!/ cause we don't hardcode
that into our package. This will get substituted at build time.
Diffstat (limited to 'databases/postgresql')
-rw-r--r--databases/postgresql/files/pgsql.sh.tmpl12
1 files changed, 6 insertions, 6 deletions
diff --git a/databases/postgresql/files/pgsql.sh.tmpl b/databases/postgresql/files/pgsql.sh.tmpl
index b8b9dfc665a..74b18e9a493 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.2 1998/02/17 15:38:59 agc Exp $
+# $NetBSD: pgsql.sh.tmpl,v 1.3 1999/01/04 14:10:16 frueauf Exp $
# FreeBSD Id: pgsql.sh.tmpl,v 1.3 1997/10/05 21:00:49 andreas Exp
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
@@ -11,16 +11,16 @@
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
-# -D!!PREFIX!!/pgsql/data \
+# -D!!PREFIX!!/!!PGUSER!!/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
-# environment variable in !!PREFIX!!/pgsql/.profile
+# environment variable in !!PREFIX!!/!!PGUSER!!/.profile
#
-[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
+[ -d !!PREFIX!!/!!PGUSER!!/lib ] && /sbin/ldconfig -m !!PREFIX!!/!!PGUSER!!/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
- su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster \
- -S -o -F > !!PREFIX!!/pgsql/errlog'
+ su -l pgsql -c 'exec !!PREFIX!!/!!PGUSER!!/bin/postmaster \
+ -S -o -F > !!PREFIX!!/!!PGUSER!!/errlog'
echo -n ' pgsql'
}