diff --git a/ipasserelle-stats.spec b/ipasserelle-stats.spec index 35748b6..db03d76 100644 --- a/ipasserelle-stats.spec +++ b/ipasserelle-stats.spec @@ -1,5 +1,5 @@ %define version 0.0.1 -%define release 1.beta1 +%define release 1.beta2 %define name ipasserelle-stats diff --git a/root/etc/e-smith/events/actions/awstats-update b/root/etc/e-smith/events/actions/awstats-update index b79606e..457c107 100644 --- a/root/etc/e-smith/events/actions/awstats-update +++ b/root/etc/e-smith/events/actions/awstats-update @@ -1,6 +1,7 @@ #!/usr/bin/perl -w use esmith::DomainsDB; +use esmith::templates; use File::Path qw/rmtree/; my $event = $ARGV [0]; @@ -22,7 +23,7 @@ foreach my $dom (@domains){ my $name = $dom->key; if (($event eq 'domain-delete') ){ rmtree "/home/e-smith/files/stats/$name"; - unlink <"/etc/awstats/$awstats.$domain.conf">; + unlink <"/etc/awstats/awstats.$domain.conf">; } else{ my $stats = $dom->prop('Stats') || 'disabled';