From fa7801c08edfc6c32b99d304b040507453c8da5e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 5 Oct 2012 11:36:42 +0200 Subject: [PATCH] Prise en compte des vhosts en plus des domaines --- root/etc/e-smith/events/actions/awstats-update | 2 +- .../templates/usr/share/awstats/wwwroot/index.html/10All | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/events/actions/awstats-update b/root/etc/e-smith/events/actions/awstats-update index 457c107..27b8473 100644 --- a/root/etc/e-smith/events/actions/awstats-update +++ b/root/etc/e-smith/events/actions/awstats-update @@ -16,7 +16,7 @@ if (defined $domain){ @domains = $d->get($domain); } else{ - @domains = ($d->domains); + @domains = ($d->domains,$d->get_all_by_prop(type=>'vhost')); } foreach my $dom (@domains){ diff --git a/root/etc/e-smith/templates/usr/share/awstats/wwwroot/index.html/10All b/root/etc/e-smith/templates/usr/share/awstats/wwwroot/index.html/10All index 4e15f38..f62791e 100644 --- a/root/etc/e-smith/templates/usr/share/awstats/wwwroot/index.html/10All +++ b/root/etc/e-smith/templates/usr/share/awstats/wwwroot/index.html/10All @@ -1,7 +1,7 @@ { use esmith::DomainsDB; my $d = esmith::DomainsDB->open_ro or die "Couldn't open DomainsDB\n"; -foreach my $dom ($d->domains){ +foreach my $dom ($d->domains,$d->get_all_by_prop('type=>'vhost')){ my $stats = $dom->prop('Stats') || 'disabled'; next unless ($stats eq 'enabled'); my $name = $dom->key;