From ee14cc246e40e9f7c276fbd01518db6881b39d69 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Wed, 4 Mar 2009 17:03:31 +0100 Subject: [PATCH] [squid-logrotate-script.sh] ajout du hostname darcs-hash:20090304160331-bd074-e19c904d555ea047224bb3680dacc5888aa6b7d9.gz --- gestion/squid-logrotate-script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gestion/squid-logrotate-script.sh b/gestion/squid-logrotate-script.sh index 4619c6a3..6635e587 100755 --- a/gestion/squid-logrotate-script.sh +++ b/gestion/squid-logrotate-script.sh @@ -3,7 +3,7 @@ umask 0177 logs_src=/var/log/squid -logs_dst=/home/squid/logs +logs_dst="/home/squid/`hostname`/logs" dernier_fichier=$logs_src/$(ls -tr "$logs_src" | grep access.log | head -1) @@ -13,4 +13,4 @@ date=$(date -d "1970-01-01 $timestamp sec" +"%Y-%m-%d") install -o root -g root -m 0400 -p "$dernier_fichier" "$logs_dst/access.log.$date.bz2" -find "$logs_dst" -mtime +365 -delete +#find "$logs_dst" -mtime +365 -delete