From 57eaa6ebf690d90e0144772a31d06272ff7665b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radoslav=20Bod=C3=B3?= <bodik@cesnet.cz> Date: Sun, 21 Apr 2024 11:48:48 +0200 Subject: [PATCH] scripts: cron prune logs --- scripts/cron.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/cron.sh b/scripts/cron.sh index 0e50dc1..b7d89a8 100644 --- a/scripts/cron.sh +++ b/scripts/cron.sh @@ -16,4 +16,7 @@ else fi # shellcheck disable=SC2002 cat "$LOGFILE" | mail -E -s "rwm backup-all $RESULT" $USER + +find /var/log/rwm -type f -mtime +90 -exec rm {} \; + exit $RET \ No newline at end of file -- GitLab