Changeset 1464
- Timestamp:
- 05/27/04 11:59:32 (4 years ago)
- Files:
-
- trunk/alternc-webalizer (modified) (3 diffs)
- trunk/debian/rules (modified) (1 diff)
- trunk/reset_stats_conf.php (deleted)
- trunk/webalizer.cache.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/alternc-webalizer
r1461 r1464 18 18 19 19 CACHEDIR="/var/cache/alternc-webalizer" 20 TMP LOG=`mktemp -p /tmp`20 TMPDNS=`mktemp -p /tmp` 21 21 mkdir -p $CACHEDIR 22 22 trap cleanup 1 2 15 23 23 24 24 function cleanup { 25 rm -f $TMP LOG25 rm -f $TMPDNS 26 26 rm -rf $CACHEDIR/* 27 27 } … … 32 32 do 33 33 # first run: resolve IPs in cache 34 grep -h " $DOM$" $ACCESSLOG | tee $TMPLOG | \ 35 /usr/bin/webalizer-$LANG -c /etc/webalizer/$DOM.conf - 36 # second run, create the stats 37 /usr/bin/webalizer-$LANG -c /etc/webalizer/$DOM.conf -N 0 $TMPLOG 34 grep -h " $DOM$" $ACCESSLOG | /usr/bin/webalizer-$LANG -c $CACHEDIR/$DOM.conf -N 5 -D $TMPDNS - 38 35 read LANG DOM 39 36 done … … 42 39 # Clear the cache dir 43 40 rm -rf $CACHEDIR/* 41 # Fill the cache dir 42 /usr/lib/alternc/webalizer.cache.php 44 43 44 # Launch the stat 45 45 mysql -h"$MYSQL_HOST" -p"$MYSQL_PASS" -u"$MYSQL_USER" "$MYSQL_DATABASE" -B -e "SELECT lang,hostname FROM stats" |grep -v "^lang" | dostat 46 46 trunk/debian/rules
r1462 r1464 56 56 57 57 install -m 0755 -g www-data -o www-data alternc-webalizer debian/alternc-webalizer/usr/lib/alternc/ 58 install -m 0755 -g www-data -o www-data webalizer.cache.php debian/alternc-webalizer/usr/lib/alternc/ 58 59 install -m 0644 webalizer.sql debian/alternc-webalizer/usr/share/alternc/ 59 60 install -m 0644 -g www-data -o www-data webalizer.template.conf debian/alternc-webalizer/etc/alternc/
