Output cron to /dev/null

tags/0.1.0
Daniel Berteaud 13 years ago
parent 98fdc35268
commit 3b869df0ac
  1. 2
      ipasserelle-stats.spec
  2. 2
      root/etc/e-smith/templates/etc/cron.hourly/awstats/10All

@ -1,5 +1,5 @@
%define version 0.0.1
%define release 1.beta6
%define release 1.beta8
%define name ipasserelle-stats

@ -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";
}
}

Loading…
Cancel
Save