From 0b23482dc7f29fc0c10bba96d026cce9b9663ea8 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 11 May 2004 11:51:06 +0000 Subject: Try jdresolve first, before attempt DNS lookup. --- localwebstats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localwebstats') diff --git a/localwebstats b/localwebstats index cd91263..414882e 100755 --- a/localwebstats +++ b/localwebstats @@ -3,7 +3,7 @@ # /usr/local/sbin/localwebstats # Copyright 2001-2002 Jonas Smedegaard # -# $Id: localwebstats,v 1.35 2004-05-11 11:28:31 jonas Exp $ +# $Id: localwebstats,v 1.36 2004-05-11 11:51:06 jonas Exp $ # # Webstats maintenance script # @@ -129,7 +129,7 @@ function awstats_setlog() { sed -e "s!^\(LogFile=\).*\$!\\1$2!" $1 > $1.tmp; mv 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 -- cgit v1.2.3