From: Alex Dehnert Date: Sun, 9 Dec 2012 08:22:22 +0000 (-0500) Subject: Delete cron-script.sh X-Git-Url: https://dehnerts.com/gitweb/?a=commitdiff_plain;h=450ec5a964686f51050c0d1ef243a19b4814f728;p=sysconfig%2Fawstats.git Delete cron-script.sh Modern awstats uses /usr/share/awstats/tools/update.sh instead, so there's no reason to keep the unused script around. --- diff --git a/cron-script.sh b/cron-script.sh deleted file mode 100755 index 032509b..0000000 --- a/cron-script.sh +++ /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."