diff --git a/config/debian/cronscript b/config/debian/cronscript index 7588fd4a79faeb1a5b8146994cc6c8bd8c1e5ede..eb8ecb8d54ab8ac3609eb55908280e4305e8ee06 100755 --- a/config/debian/cronscript +++ b/config/debian/cronscript @@ -288,7 +288,7 @@ function laststeps() { exec > "$logdir/after${PROGRAM}.log" 2>&1 # Rotate out old logfiles - find ${logdir}/${PROGRAM}_*.log.bz2 -mtime +${logkeep} -delete + find ${logdir} -name "${PROGRAM}_*.log.bz2" -mtime +${logkeep} -delete # Now, at the very (successful) end of this run, make sure we remove # our stage files, so the next script run will do it all again.