From e011ab724b04e4a9c7b298af157219d4d53c3afd Mon Sep 17 00:00:00 2001 From: Matthew Vernon Date: Mon, 27 Jan 2014 17:08:28 +0000 Subject: [PATCH] Add -type f to crontab.part.IN0 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 --- crontab.part.INO | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crontab.part.INO b/crontab.part.INO index da97af9..537dc72 100644 --- a/crontab.part.INO +++ b/crontab.part.INO @@ -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 -- -- 2.30.2