diff options
-rwxr-xr-x | localwebresolve | 6 |
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 |