summaryrefslogtreecommitdiff
path: root/localwebresolve
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-05-11 10:26:31 +0000
committerJonas Smedegaard <dr@jones.dk>2004-05-11 10:26:31 +0000
commit6eca5fd32523cf6425d867ab5d0c021c5d0c03be (patch)
treebd9dcb1f2549fac20c6cc5f17b233c2c460896d2 /localwebresolve
parentf59f53e780cb0ce6e38b6941f10b7d2590fa8ae4 (diff)
Correct double-quoted jdresolve db path, and don't check for existing db on record purge.
Diffstat (limited to 'localwebresolve')
-rwxr-xr-xlocalwebresolve6
1 files changed, 3 insertions, 3 deletions
diff --git a/localwebresolve b/localwebresolve
index 6deecdd..379533a 100755
--- a/localwebresolve
+++ b/localwebresolve
@@ -3,7 +3,7 @@
# /usr/local/sbin/localwebresolve
# Copyright 2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localwebresolve,v 1.7 2004-05-11 10:23:02 jonas Exp $
+# $Id: localwebresolve,v 1.8 2004-05-11 10:26:31 jonas Exp $
#
# Webstats maintenance script
#
@@ -62,9 +62,9 @@ LOGRESOLVE_BIN="/usr/sbin/logresolve"
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\""
+ JDRESOLVE_OPTIONS="$JDRESOLVE_OPTIONS --database=$JDRESOLVE_DB"
test -d $(dirname "$JDRESOLVE_DB") || exit1 "Cache dir for jdresolve doesn't exist"
- if [ -f "$JDRESOLVE_DB" -a -n "$JDRESOLVE_EXPIRY" ]; then
+ if [ -n "$JDRESOLVE_EXPIRY" ]; then
jdresolve $JDRESOLVE_OPTIONS --expiredb="$JDRESOLVE_EXPIRY"
fi
fi