From 3b869df0aca929834a483e6b2f5e6ea07480067a Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 31 Mar 2012 15:58:10 +0200 Subject: [PATCH] Output cron to /dev/null --- ipasserelle-stats.spec | 2 +- root/etc/e-smith/templates/etc/cron.hourly/awstats/10All | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ipasserelle-stats.spec b/ipasserelle-stats.spec index e4b2a49..d2b5706 100644 --- a/ipasserelle-stats.spec +++ b/ipasserelle-stats.spec @@ -1,5 +1,5 @@ %define version 0.0.1 -%define release 1.beta6 +%define release 1.beta8 %define name ipasserelle-stats diff --git a/root/etc/e-smith/templates/etc/cron.hourly/awstats/10All b/root/etc/e-smith/templates/etc/cron.hourly/awstats/10All index 50b74fb..c98f6f4 100644 --- a/root/etc/e-smith/templates/etc/cron.hourly/awstats/10All +++ b/root/etc/e-smith/templates/etc/cron.hourly/awstats/10All @@ -9,6 +9,6 @@ foreach my $dom ($d->domains){ next if ($stats ne 'enabled'); my $name = $dom->key; $OUT .= 'mkdir -p /home/e-smith/files/stats/'."$name".'/$YEAR/'."\n"; - $OUT .= "/usr/share/awstats/tools/awstats_buildstaticpages.pl -config=$name -update -lang=$lang -dir=/home/e-smith/files/stats/$name/\$YEAR/\n\n"; + $OUT .= "/usr/share/awstats/tools/awstats_buildstaticpages.pl -config=$name -update -lang=$lang -dir=/home/e-smith/files/stats/$name/\$YEAR/ 2>&1 > /dev/null\n\n"; } }