diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-16 10:44:22 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-16 10:44:22 +0100 |
commit | 0ea574ad4fcbc974a45c34bd3ef88bc8a87909c9 (patch) | |
tree | a11a7de791ab03f0571859cb8b68355255865dfe /bin | |
parent | 0c3a2d304463dd199d4c755705a4afd31b5798ec (diff) | |
download | jenkins.debian.net-0ea574ad4fcbc974a45c34bd3ef88bc8a87909c9.tar.xz |
maxdepth 0 wont cut it here
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/maintainance.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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" |