summaryrefslogtreecommitdiff
path: root/security/cyrus-sasl
diff options
context:
space:
mode:
authorjlam <jlam>2002-01-31 19:55:07 +0000
committerjlam <jlam>2002-01-31 19:55:07 +0000
commitd4057807236bfb36e068135e22c45bb6813d848b (patch)
tree697c0c5202eda0ab36d266d1d75a9ee0779a5b8f /security/cyrus-sasl
parent6362725c16de107cc2f1329660a5d57e7ec51beb (diff)
downloadpkgsrc-d4057807236bfb36e068135e22c45bb6813d848b.tar.gz
Make "dbinit" work even if not installed in /etc/rc.d.
Diffstat (limited to 'security/cyrus-sasl')
-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
}