logrotate: Fix postrotate script of snort's logs.

This commit is contained in:
Michael Tremer
2009-10-21 21:33:41 +02:00
parent 42fedb353f
commit 52216718f5

View File

@@ -32,9 +32,9 @@ compress
ifempty
missingok
postrotate
/usr/bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
/usr/bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
/usr/local/bin/restartsnort
/bin/find /var/log/snort -path '/var/log/snort/[0-9]*' -prune -exec /bin/rm -rf {} \;
/bin/find /var/log/snort -name 'snort.log.*' -mtime +28 -exec /bin/rm -rf {} \;
/etc/init.d/snort restart
endscript
}