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