Changeset 1466


Ignore:
Timestamp:
05/28/04 12:13:56 (9 years ago)
Author:
anonymous
Message:
  • ajout du script sql d'upgrade
  • ajout du script manuel
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/alternc-webalizer

    r1464 r1466  
    1919CACHEDIR="/var/cache/alternc-webalizer" 
    2020TMPDNS=`mktemp -p /tmp` 
     21TMPLOG=`mktemp -p /tmp` 
    2122mkdir -p $CACHEDIR 
    2223trap cleanup 1 2 15 
     
    2425function cleanup { 
    2526    rm -f $TMPDNS 
     27    rm -f $TMPLOG 
    2628    rm -rf $CACHEDIR/* 
    2729} 
     
    3133    while [ "$DOM" ] 
    3234    do     
    33         # first run: resolve IPs in cache 
    34         grep -h " $DOM$" $ACCESSLOG | /usr/bin/webalizer-$LANG -c $CACHEDIR/$DOM.conf -N 5 -D $TMPDNS - 
    35         read LANG DOM 
     35      export LC_ALL="$LANG" 
     36      export LC_MESSAGES="$LANG" 
     37      export LANG 
     38 
     39      # first run: resolve IPs in cache 
     40      grep -h " $DOM$" $ACCESSLOG | /usr/bin/webalizer -c $CACHEDIR/$DOM.conf -N 5 -D $TMPDNS - &>/dev/null 
     41      # second run: process the stats 
     42      /usr/bin/webalizer -c $CACHEDIR/$DOM.conf -N 0 -D $TMPDNS - 2>/dev/null  
     43      read LANG DOM 
    3644    done 
    3745} 
  • trunk/debian/rules

    r1464 r1466  
    5656 
    5757        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 alternc-webalizer.manual.sh debian/alternc-webalizer/usr/lib/alternc/ 
    5859        install -m 0755 -g www-data -o www-data webalizer.cache.php debian/alternc-webalizer/usr/lib/alternc/ 
    5960        install -m 0644 webalizer.sql debian/alternc-webalizer/usr/share/alternc/ 
Note: See TracChangeset for help on using the changeset viewer.