summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/awstats-update6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/awstats-update b/bin/awstats-update
new file mode 100755
index 0000000..fd5859a
--- /dev/null
+++ b/bin/awstats-update
@@ -0,0 +1,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