diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-05-11 11:28:31 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-05-11 11:28:31 +0000 |
commit | 8baaf98126ecb3271a38022c73f1fde8bf7fbcfd (patch) | |
tree | 18ed071e1c27b08106710b8a4d57f4c341c9f668 /localwebresolve | |
parent | 6eca5fd32523cf6425d867ab5d0c021c5d0c03be (diff) |
Suppress jdresolve record purge status unless DEBUG is set.
Diffstat (limited to 'localwebresolve')
-rwxr-xr-x | localwebresolve | 8 |
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 |