diff options
author | jlam <jlam> | 2002-01-31 19:55:07 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-31 19:55:07 +0000 |
commit | d4057807236bfb36e068135e22c45bb6813d848b (patch) | |
tree | 697c0c5202eda0ab36d266d1d75a9ee0779a5b8f /security | |
parent | 6362725c16de107cc2f1329660a5d57e7ec51beb (diff) | |
download | pkgsrc-d4057807236bfb36e068135e22c45bb6813d848b.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.sh | 6 |
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 } |