summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocalwebresolve8
1 files changed, 6 insertions, 2 deletions
diff --git a/localwebresolve b/localwebresolve
index 379533a..d2859ca 100755
--- a/localwebresolve
+++ b/localwebresolve
@@ -3,7 +3,7 @@
# /usr/local/sbin/localwebresolve
# Copyright 2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localwebresolve,v 1.8 2004-05-11 10:26:31 jonas Exp $
+# $Id: localwebresolve,v 1.9 2004-05-11 11:28:31 jonas Exp $
#
# Webstats maintenance script
#
@@ -65,7 +65,11 @@ if [ -x "$JDRESOLVE_BIN" -a -n "$JDRESOLVE_DB" ]; then
JDRESOLVE_OPTIONS="$JDRESOLVE_OPTIONS --database=$JDRESOLVE_DB"
test -d $(dirname "$JDRESOLVE_DB") || exit1 "Cache dir for jdresolve doesn't exist"
if [ -n "$JDRESOLVE_EXPIRY" ]; then
- jdresolve $JDRESOLVE_OPTIONS --expiredb="$JDRESOLVE_EXPIRY"
+ if [ $DEBUG ]; then
+ jdresolve $JDRESOLVE_OPTIONS --expiredb="$JDRESOLVE_EXPIRY"
+ else
+ jdresolve $JDRESOLVE_OPTIONS --expiredb="$JDRESOLVE_EXPIRY" > /dev/null 2>&1
+ fi
fi
fi