summaryrefslogtreecommitdiff
path: root/localwebresolve
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
commit4c0b8219fccd0b04bb0391627b3411a74bedab7a (patch)
tree9dbc28008cc6e08dc58e79482083ac6b47774bd8 /localwebresolve
parent281a91cba315074d6ddfb3ca21fe5f7ad5d3d936 (diff)
Correct test for jdresolve db dir.
Diffstat (limited to 'localwebresolve')
-rwxr-xr-xlocalwebresolve4
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebresolve b/localwebresolve
index f361897..3b4f17d 100755
--- a/localwebresolve
+++ b/localwebresolve
@@ -3,7 +3,7 @@
# /usr/local/sbin/localwebresolve
# Copyright 2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localwebresolve,v 1.5 2004-05-11 10:07:52 jonas Exp $
+# $Id: localwebresolve,v 1.6 2004-05-11 10:20:58 jonas Exp $
#
# Webstats maintenance script
#
@@ -63,7 +63,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