summaryrefslogtreecommitdiff
path: root/localwebresolve
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2004-05-11 11:51:06 +0000
committerJonas Smedegaard <dr@jones.dk>2004-05-11 11:51:06 +0000
commita28d9f30df19fe2e04efbfc4f81f2775aa9360b3 (patch)
treec8df873df78546e01d2d17b7d7ccb9604397426e /localwebresolve
parent8baaf98126ecb3271a38022c73f1fde8bf7fbcfd (diff)
Try jdresolve first, before attempt DNS lookup.
Diffstat (limited to 'localwebresolve')
-rwxr-xr-xlocalwebresolve4
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebresolve b/localwebresolve
index d2859ca..423e5e4 100755
--- a/localwebresolve
+++ b/localwebresolve
@@ -3,7 +3,7 @@
# /usr/local/sbin/localwebresolve
# Copyright 2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localwebresolve,v 1.9 2004-05-11 11:28:31 jonas Exp $
+# $Id: localwebresolve,v 1.10 2004-05-11 11:51:06 jonas Exp $
#
# Webstats maintenance script
#
@@ -62,7 +62,7 @@ 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 --dbfirst"
test -d $(dirname "$JDRESOLVE_DB") || exit1 "Cache dir for jdresolve doesn't exist"
if [ -n "$JDRESOLVE_EXPIRY" ]; then
if [ $DEBUG ]; then