summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-02 13:23:31 +0000
committerjlam <jlam@pkgsrc.org>2008-04-02 13:23:31 +0000
commit130b5abaa8f8bbfe8b7643dc19dfb6aef4715332 (patch)
tree43e8de4c41638b8f1ef0447e9768934cbd38231a /pkgtools/pkg_install
parent2e7119d6f66a2ee916e94d7bf87f206df97d8bbf (diff)
downloadpkgsrc-130b5abaa8f8bbfe8b7643dc19dfb6aef4715332.tar.gz
Invoke the correct pkg_admin command during post-installation.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/INSTALL5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/INSTALL b/pkgtools/pkg_install/INSTALL
index 13dccce1803..e63ed494699 100644
--- a/pkgtools/pkg_install/INSTALL
+++ b/pkgtools/pkg_install/INSTALL
@@ -1,12 +1,11 @@
#!/bin/sh
#
-# $NetBSD: INSTALL,v 1.2 2005/11/07 06:52:24 jlam Exp $
+# $NetBSD: INSTALL,v 1.3 2008/04/02 13:23:31 jlam Exp $
PKGNAME="$1"
STAGE="$2"
PKG_DBDIR="@PKG_DBDIR@"
-PKG_TOOLS_BIN="@PKG_TOOLS_BIN@"
MKDIR="@MKDIR@"
case ${STAGE} in
@@ -15,6 +14,6 @@ PRE-INSTALL)
;;
POST-INSTALL)
- [ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_TOOLS_BIN}/pkg_admin rebuild
+ [ -f ${PKG_DBDIR}/pkgdb.byfile.db ] || ${PKG_PREFIX}/sbin/pkg_admin rebuild
;;
esac