summaryrefslogtreecommitdiff
path: root/localwebstats-all
blob: c402d28f646ef702766f369db6a67ce6d936ca9d (plain)
  1. #!/bin/bash
  2. WEBROOT=/var/www
  3. LOGROOT=/var/log/apache
  4. function webdirs()
  5. {
  6. echo `find /var/log/apache -type d -print`
  7. # for dir in $(find ${LOGROOT} -type d -print)
  8. # do
  9. # echo $dir
  10. # done
  11. }
  12. . /etc/local/www || exit 1
  13. #for WEBSITE in $(ls $WWWROOT)
  14. #for WEBSITE in $(find $WWWROOT/* -type d -mindepth 1 -maxdepth 1 -print)
  15. for WEBSITE in $(webdirs); do
  16. if test $WEBSITE != "lost+found"
  17. then
  18. /usr/local/sbin/stats-init $WEBSITE
  19. fi
  20. done