]> git.pld-linux.org Git - packages/awffull.git/blob - awffull.cron
- copied from webalizer, not tested yet
[packages/awffull.git] / awffull.cron
1 #!/bin/sh
2
3 AWFFULL_OPTS=""
4 [ -f /etc/sysconfig/awffull ] && . /etc/sysconfig/awffull
5 umask 0022
6
7 if [ -n "$ENABLE" ] && [ "$ENABLE" = "yes" -o "$ENABLE" = "YES" ]; then
8         LC_ALL=$LANG
9         export LANG
10         export LC_ALL
11         
12         if [ -n "$REALLY_QUIET" ] && [ "$REALLY_QUIET" = "yes" -o "$REALLY_QUIET" = "YES" ]; then
13                 AWFFULL_OPTS="-Q"
14         elif [ -n "$QUIET" ] && [ "$QUIET" = "yes" -o "$QUIET" = "YES" ]; then
15                 AWFFULL_OPTS="-q"
16         fi
17         
18         if [ -f /etc/awffull.conf ]; then
19                 awffull ${AWFFULL_OPTS} -c /etc/awffull.conf
20         fi
21         if [ -n "$MULTIPLE" ] && [ "$MULTIPLE" = "yes" -o "$MULTIPLE" = "YES" ]; then
22                 for i in $(ls /etc/awffull/*.conf 2>/dev/null); do
23                         awffull ${AWFFULL_OPTS} -c $i;
24                 done
25         fi
26 fi
This page took 0.330423 seconds and 3 git commands to generate.