From 9b3898835abf35546ae18e837051223ff32350fa Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 29 Aug 2014 09:22:46 +0200 Subject: [PATCH] =?UTF-8?q?logall:=20g=C3=A9n=C3=A9ralisation=20du=20code?= =?UTF-8?q?=20=C3=A0=20odlyd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- firewall/firewall-logrotate-script.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firewall/firewall-logrotate-script.sh b/firewall/firewall-logrotate-script.sh index 98ad7162..1cd2f308 100755 --- a/firewall/firewall-logrotate-script.sh +++ b/firewall/firewall-logrotate-script.sh @@ -7,11 +7,13 @@ umask 0177 if [[ `hostname` == 'komaz' ]]; then - logs_src=/var/log/firewall/ + logs_src=/var/log/firewall +elif [[ `hostname` == 'odlyd' ]]; then + logs_src=/var/log/firewall else exit 41 fi -logs_dst="/home/squid/`hostname`/logs" +logs_dst="/home/logs/`hostname`" if [ ! -d "$logs_dst" ]; then echo "Destination des logs inexistante"