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"