|
|
@ -33,14 +33,14 @@ $vhost = $d->get("stats.$domain"); |
|
|
|
|
|
|
|
|
|
|
|
if (!$vhost){ |
|
|
|
if (!$vhost){ |
|
|
|
$d->new_record("stats.$domain",{ |
|
|
|
$d->new_record("stats.$domain",{ |
|
|
|
type => 'domain', |
|
|
|
type => 'domain', |
|
|
|
Content => 'Primary', |
|
|
|
Content => 'Primary', |
|
|
|
Description => "Statistiques web", |
|
|
|
Description => "Statistiques web", |
|
|
|
Nameservers => 'internet', |
|
|
|
Nameservers => 'internet', |
|
|
|
TemplatePath => 'WebAppVirtualHost', |
|
|
|
TemplatePath => 'WebAppVirtualHost', |
|
|
|
DocumentRoot => '/usr/share/awstats/wwwroot', |
|
|
|
DocumentRoot => '/usr/share/awstats/wwwroot', |
|
|
|
LemonLDAP => 'enabled', |
|
|
|
Authentication => 'LemonLDAP', |
|
|
|
Removable => 'yes', |
|
|
|
Removable => 'yes', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
unless ( system("/sbin/e-smith/signal-event", "domain-create", "stats.$domain") == 0 ){ |
|
|
|
unless ( system("/sbin/e-smith/signal-event", "domain-create", "stats.$domain") == 0 ){ |
|
|
|