summaryrefslogtreecommitdiff
path: root/bin/awstats-update
blob: fd5859a1f402ccd607dcfc58c217bb94448e7acf (plain)
1
2
3
4
5
6
#!/bin/sh

[ -f /etc/awstats/awstats.conf ] && /usr/lib/cgi-bin/awstats.pl -config=awstats -update >/dev/null
for cfg in `find /etc/awstats -name 'awstats.*.conf' -printf '%f\n' | sed 's/^awstats\.\(.*\)\.conf/\1/'`; do
    /usr/lib/cgi-bin/awstats.pl -config=$cfg -update >/dev/null
done