webalizer: do not parse empty logs

This commit is contained in:
Olaf Rempel 2006-10-01 13:47:07 +02:00
parent 3f8d99913d
commit 85deb233f1

View File

@ -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
}