summaryrefslogtreecommitdiff
path: root/localwebstats
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
commit0b23482dc7f29fc0c10bba96d026cce9b9663ea8 (patch)
tree27845e0097485c3e9462e3eb64ba8500edf1dd38 /localwebstats
parent7a7fe0995a0b1195a42387e2b32bf6f834881304 (diff)
Try jdresolve first, before attempt DNS lookup.
Diffstat (limited to 'localwebstats')
-rwxr-xr-xlocalwebstats4
1 files changed, 2 insertions, 2 deletions
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 <dr@jones.dk>
#
-# $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