#!/bin/sh # /etc/cron.daily/webalizer: webalizer daily maintenance script # Written by Remco van de Meent . # changed by toni@irational.org to deal with multiple sites - following # the advice at http://www.mrunix.net/webalizer/faq.html (see 17.) WEBALIZER_BIN=/usr/bin/webalizer WEBALIZER_DIR=/etc/webalizer # See if the webalizer binary and config file exists # if not, exit without warning to prevent daily mails [ -f ${WEBALIZER_BIN} ] || exit 0 [ -d ${WEBALIZER_DIR} ] || exit 0 for i in ${WEBALIZER_DIR}/*.conf; do ${WEBALIZER_BIN} -q -c $i; done # Exit with webalizer's exit code exit $?