From 0ea574ad4fcbc974a45c34bd3ef88bc8a87909c9 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 16 Feb 2015 10:44:22 +0100 Subject: maxdepth 0 wont cut it here --- bin/maintainance.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/maintainance.sh b/bin/maintainance.sh index 51fd8999..396da6a5 100755 --- a/bin/maintainance.sh +++ b/bin/maintainance.sh @@ -35,8 +35,8 @@ chroot_checks() { } remove_old_rebootstrap_logs() { - # find and warn about old temp directories - OLDSTUFF=$(find /var/lib/jenkins/jobs/rebootstrap_* -maxdepth 0 -mtime +7 -name log_content.html -exec rm -v {} \;) + # delete old html logs to save space + OLDSTUFF=$(find /var/lib/jenkins/jobs/rebootstrap_* -maxdepth 3 -mtime +7 -name log_content.html -exec rm -v {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo "Old html logs have been deleted:" echo "$OLDSTUFF" -- cgit v1.2.3-70-g09d2