blob: c402d28f646ef702766f369db6a67ce6d936ca9d (
plain)
- #!/bin/bash
- WEBROOT=/var/www
- LOGROOT=/var/log/apache
- function webdirs()
- {
- echo `find /var/log/apache -type d -print`
- # for dir in $(find ${LOGROOT} -type d -print)
- # do
- # echo $dir
- # done
- }
- . /etc/local/www || exit 1
- #for WEBSITE in $(ls $WWWROOT)
- #for WEBSITE in $(find $WWWROOT/* -type d -mindepth 1 -maxdepth 1 -print)
- for WEBSITE in $(webdirs); do
- if test $WEBSITE != "lost+found"
- then
- /usr/local/sbin/stats-init $WEBSITE
- fi
- done
|