webalizer: do not parse empty logs
This commit is contained in:
parent
3f8d99913d
commit
85deb233f1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user