summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2002-01-31 19:55:07 +0000
committerjlam <jlam@pkgsrc.org>2002-01-31 19:55:07 +0000
commit66dcef3cab1cdf5dc3c3421f1675373217c12927 (patch)
tree697c0c5202eda0ab36d266d1d75a9ee0779a5b8f /security
parentf5769599830db2f3371a4df9f610706fb2b58a5a (diff)
downloadpkgsrc-66dcef3cab1cdf5dc3c3421f1675373217c12927.tar.gz
Make "dbinit" work even if not installed in /etc/rc.d.
Diffstat (limited to 'security')
-rw-r--r--security/cyrus-sasl/files/sasl_pwcheck.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/security/cyrus-sasl/files/sasl_pwcheck.sh b/security/cyrus-sasl/files/sasl_pwcheck.sh
index b50636f2d38..1bf15672424 100644
--- a/security/cyrus-sasl/files/sasl_pwcheck.sh
+++ b/security/cyrus-sasl/files/sasl_pwcheck.sh
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: sasl_pwcheck.sh,v 1.4 2001/11/26 20:38:32 jlam Exp $
+# $NetBSD: sasl_pwcheck.sh,v 1.5 2002/01/31 19:55:07 jlam Exp $
#
# The pwcheck daemon allows UNIX password authentication with Cyrus SASL.
#
@@ -12,6 +12,8 @@ then
. /etc/rc.subr
fi
+rcd_dir=`@DIRNAME@ $0`
+
name="sasl_pwcheck"
rcvar="${name}"
command="@PREFIX@/sbin/pwcheck"
@@ -42,7 +44,7 @@ sasl_pwcheck_precmd()
{
if [ ! -e ${sasldb} ]
then
- @RCD_SCRIPTS_DIR@/sasl_pwcheck dbinit
+ $rcd_dir/sasl_pwcheck dbinit
fi
}