]> git.pld-linux.org Git - packages/awffull.git/blame - awffull.cron
- copied from webalizer, not tested yet
[packages/awffull.git] / awffull.cron
CommitLineData
a5ade1a0
PG
1#!/bin/sh
2
3AWFFULL_OPTS=""
4[ -f /etc/sysconfig/awffull ] && . /etc/sysconfig/awffull
5umask 0022
6
7if [ -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
26fi
This page took 0.103276 seconds and 4 git commands to generate.