]> jfr.im git - erebus.git/blobdiff - README.md
fix find to trim oldlogs
[erebus.git] / README.md
index 521314d23fc418a24baa3f348cbd3b5667e2a292..497662d9ccd1069de6508193798297ce9538b768 100644 (file)
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ Install croncheck.sh in your crontab, if desired.
 `* * * * * /path/to/erebus/croncheck.sh`  
 To suppress croncheck.sh from restarting the bot without removing from crontab, `touch dontstart`
 
-Output will be placed in `logfile`, which is rotated to `oldlogs/`. (I strongly recommend `rm oldlogs/*` as a weekly crontab entry. `@weekly find /path/to/erebus/oldlogs/ -mtime 7 -execdir rm '{}' +`)
+Output will be placed in `logfile`, which is rotated to `oldlogs/`. (I strongly recommend `rm oldlogs/*` as a weekly crontab entry. `@weekly find /path/to/erebus/oldlogs/ -mtime +7 '!' -name .keep -delete`)
 
 The bot targets Python 3 only. It has some time ago switched to being primarily tested on Python 3.
 Python 2 support is presumed to have slowly eroded due to a lack of testing. It probably won't work.