diff --git a/webalizer.sh b/webalizer.sh index a58a560..7a8aae7 100644 --- a/webalizer.sh +++ b/webalizer.sh @@ -25,13 +25,13 @@ for config in $CONF_DIR/*.conf; do } # rotated, not compressed logfile - [ -f ${logfile}.1 ] && { + [ -s ${logfile}.1 ] && { # echo ${logfile}.1 $WEBALIZER -c $config -q ${logfile}.1 } # current logfile (as given in config) - [ -f ${logfile} ] && { + [ -s ${logfile} ] && { # echo $logfile $WEBALIZER -c $config -q }