summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/maintainance.sh4
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"