summaryrefslogtreecommitdiff
path: root/localwebstats
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-05-11 10:20:58 +0000
committerJonas Smedegaard <dr@jones.dk>2004-05-11 10:20:58 +0000
commitd2944893ceb7bacaf689e79ae33147ff22b2a4b5 (patch)
tree40111ed4bb625877805a9bdf1cb6626b69bcb09d /localwebstats
parent8f109fbf0c052144c7df05acea6ece2ecd39e742 (diff)
Correct test for jdresolve db dir.
Diffstat (limited to 'localwebstats')
-rwxr-xr-xlocalwebstats4
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebstats b/localwebstats
index 56007ec..a291e99 100755
--- a/localwebstats
+++ b/localwebstats
@@ -3,7 +3,7 @@
# /usr/local/sbin/localwebstats
# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localwebstats,v 1.31 2004-05-11 10:13:59 jonas Exp $
+# $Id: localwebstats,v 1.32 2004-05-11 10:20:58 jonas Exp $
#
# Webstats maintenance script
#
@@ -130,7 +130,7 @@ test -d $WEBROOT || exit1 "Webroot \"$WEBROOT\" doesn't exist"
test -d $LOGROOT || exit1 "Logroot \"$LOGROOT\" doesn't exist"
if [ -x $JDRESOLVE_BIN -a -n "$JDRESOLVE_DB" ]; then
JDRESOLVE_OPTIONS="$JDRESOLVE_OPTIONS --database=\"$JDRESOLVE_DB\""
- test -d $(basedir "$JDRESOLVE_DB") || exit1 "Cache dir for jdresolve doesn't exist"
+ test -d $(dirname "$JDRESOLVE_DB") || exit1 "Cache dir for jdresolve doesn't exist"
if [ -n "$JDRESOLVE_EXPIRY" ]; then
jdresolve $JDRESOLVE_OPTIONS --expiredb="$JDRESOLVE_EXPIRY"
fi