diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-11-29 16:48:28 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-11-29 16:48:28 +0100 |
commit | 97101439b7dfc5f3cb69086e8d84fbc4dcb9777b (patch) | |
tree | efb8cbb9b32f47bed1f0b34149e2cb382808fb69 | |
parent | a9effd089b5b0b8fa5232c0afbe91467bd8be84f (diff) | |
download | jenkins.debian.net-97101439b7dfc5f3cb69086e8d84fbc4dcb9777b.tar.xz |
only show by prefix
-rwxr-xr-x | bin/housekeeping.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh index 87b73074..481f331e 100755 --- a/bin/housekeeping.sh +++ b/bin/housekeeping.sh @@ -14,7 +14,8 @@ echo df -h echo # FIXME: make this a general and a specific housekeeping job: -for DIR in /var/cache/apt/archives/ /var/spool/squid/ /var/lib/jenkins/jobs/* /var/cache/pbuilder/build/ ; do +JOB_PREFIXES=$(ls /var/lib/jenkins/jobs/* -d | cut -d "_" -f1|sort -u) +for DIR in /var/cache/apt/archives/ /var/spool/squid/ /var/cache/pbuilder/build/ $JOB_PREFIXES ; do sudo du -sh $DIR done echo |