From 6eca5fd32523cf6425d867ab5d0c021c5d0c03be Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 11 May 2004 10:26:31 +0000 Subject: Correct double-quoted jdresolve db path, and don't check for existing db on record purge. --- localwebresolve | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'localwebresolve') 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 # -# $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 -- cgit v1.2.3