From a87cb2b0686687f275c77507f96dbed06c08cba3 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Tue, 29 Apr 2014 15:46:23 +0200 Subject: [PATCH] crontab.d/jobs.daily/prune-logs: follow symlink find doesn't follow symlinks by default. The "/" forces it to change to the directory even if it's a symlink. --- crontab.d/jobs.daily/prune-logs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crontab.d/jobs.daily/prune-logs b/crontab.d/jobs.daily/prune-logs index 2678a3b..9295aa9 100755 --- a/crontab.d/jobs.daily/prune-logs +++ b/crontab.d/jobs.daily/prune-logs @@ -29,4 +29,4 @@ fi # Remove empty directories. rmdir "$logdir"/* 2>/dev/null || true -exec find "$logdir" -type f -mtime +14 -delete +exec find "$logdir/" -type f -mtime +14 -delete -- 2.45.2