diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-11-18 10:26:19 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-11-18 10:26:19 +0100 |
commit | e9b5d5af1fde52a271d0e4bee988e458d2b2de11 (patch) | |
tree | 5f352f48862f20477e046379bc80fd37b5650cc0 /bin | |
parent | d25175aaa62ed7fa5c44d934349fd17736017b72 (diff) | |
download | jenkins.debian.net-e9b5d5af1fde52a271d0e4bee988e458d2b2de11.tar.xz |
maintainance: ignore /srv/d-i/workspace
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/maintainance.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/maintainance.sh b/bin/maintainance.sh index 694c964a..047d4f68 100755 --- a/bin/maintainance.sh +++ b/bin/maintainance.sh @@ -36,7 +36,12 @@ chroot_checks() { report_old_directories() { # find and warn about old temp directories - OLDSTUFF=$(find $1/* -maxdepth 0 -type d -mtime +$2 -exec ls -lad {} \;) + if [ -z "$3" ] ; then + OLDSTUFF=$(find $1/* -maxdepth 0 -type d -mtime +$2 -exec ls -lad {} \;) + else + # if $3 is given, ignore it + OLDSTUFF=$(find $1/* -maxdepth 0 -type d -mtime +$2 ! -path "$3*" -exec ls -lad {} \;) + fi if [ ! -z "$OLDSTUFF" ] ; then echo "Warning: old temp directories found in $REP_RESULTS" echo "$OLDSTUFF" @@ -164,7 +169,7 @@ else echo "WARNING: there is no check / handling on stale lvm volumes" rm $ACTIVE_JOBS $WATCHED_JOBS $RUNNING ;; - d-i) report_old_directories /srv/d-i 7 + d-i) report_old_directories /srv/d-i 7 /srv/d-i/workspace ;; squid) report_squid_usage ;; |