chiark / gitweb /
Add -type f to crontab.part.IN0
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 27 Jan 2014 17:08:28 +0000 (17:08 +0000)
committerMatthew Vernon <matthewv@chiark.greenend.org.uk>
Mon, 27 Jan 2014 17:08:28 +0000 (17:08 +0000)
Previously, this cron job would complain that
xlog/log/[newsgroup/public is a directory. Fix that by telling find to
only return files.

Signed-off-by: Matthew Vernon <matthewv@chiark.greenend.org.uk>
crontab.part.INO

index da97af923edc2a13811a24f15c206f14d6165635..537dc723debdefe06a5fe2d831721a8a655b1146 100644 (file)
@@ -6,4 +6,4 @@
 50 7  * * 1    savelog -p live-%ABBREV%/xlog/log/%GROUP%/event.log
 51 7  12 * *   savelog -p live-%ABBREV%/errs
 52 7  12 * *   savelog -p live-%ABBREV%/webstump/log/webstump.log
-53 7  * * 1    find live-%ABBREV%/xlog/log/%GROUP%/public -mtime +14 -print0 | xargs -r0 rm --
+53 7  * * 1    find live-%ABBREV%/xlog/log/%GROUP%/public -mtime +14 -type f -print0 | xargs -r0 rm --