Delete cron-script.sh
authorAlex Dehnert <adehnert@mit.edu>
Sun, 9 Dec 2012 08:22:22 +0000 (03:22 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Sun, 9 Dec 2012 08:22:22 +0000 (03:22 -0500)
Modern awstats uses /usr/share/awstats/tools/update.sh instead, so there's no
reason to keep the unused script around.

cron-script.sh [deleted file]

diff --git a/cron-script.sh b/cron-script.sh
deleted file mode 100755 (executable)
index 032509b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-set -e
-
-domains="olinda alex"
-
-if [ ! -x /usr/lib/cgi-bin/awstats.pl ]; then exit 1; fi
-cd /etc/awstats/
-
-for domain in $domains; do
-    echo "Updating $domain..."
-    /usr/lib/cgi-bin/awstats.pl -config=$domain -update
-    echo "Building pages..."
-    /var/lib/awstats/bin/awstats_buildstaticpages.pl -awstatsprog=/usr/lib/cgi-bin/awstats.pl -config=$domain -dir=output
-    echo
-    echo
-    echo
-done
-echo "Done with awstats."