From 1349423891672439d99db83455ca035edd501b9f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 29 Mar 2012 14:04:02 +0200 Subject: [PATCH] fix awstats-update script --- ipasserelle-stats.spec | 2 +- root/etc/e-smith/events/actions/awstats-update | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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';