parent
5661fa833c
commit
bea175879b
5 changed files with 6 additions and 49 deletions
@ -1,14 +0,0 @@ |
|||||||
{ |
|
||||||
use esmith::DomainsDB; |
|
||||||
my $d = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n"; |
|
||||||
my $lang = $awstats{'Language'} || 'fr'; |
|
||||||
$OUT .= 'YEAR=$(date +%Y)'."\n"; |
|
||||||
|
|
||||||
foreach my $dom ($d->domains){ |
|
||||||
my $stats = $dom->prop('Stats') || 'disabled'; |
|
||||||
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/ 2>&1 > /dev/null\n\n"; |
|
||||||
} |
|
||||||
} |
|
Loading…
Reference in new issue