diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-05-11 11:51:06 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-05-11 11:51:06 +0000 |
commit | a28d9f30df19fe2e04efbfc4f81f2775aa9360b3 (patch) | |
tree | c8df873df78546e01d2d17b7d7ccb9604397426e | |
parent | 8baaf98126ecb3271a38022c73f1fde8bf7fbcfd (diff) |
Try jdresolve first, before attempt DNS lookup.
-rwxr-xr-x | localwebresolve | 4 |
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 |