diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-19 10:04:38 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-19 10:04:38 +0100 |
commit | 9fa73960f8ee5ade853cdb394a7a05ca1ae16e1a (patch) | |
tree | 4abc089adad39f060f40e4034311a9f8e3cecb78 /bin | |
parent | 1147b2b80b723fe2c85f9a65a17da89c4252fb46 (diff) | |
download | jenkins.debian.net-9fa73960f8ee5ade853cdb394a7a05ca1ae16e1a.tar.xz |
reproducible: actually delete old schroots
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 013ae99d..df62f696 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -48,12 +48,12 @@ if [ ! -z "$OLDSTUFF" ] ; then fi # find old schroots -OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible*" -mtime +2 -exec ls -lad {} \;) +OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo - echo "Warning: old schroots found in /schroots" + echo "Warning: old schroots found in /schroots, which have been deleted:" + find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec rm -rf {} \; echo "$OLDSTUFF" - echo "TODO: automatically delete them, please cleanup manually for now..." echo DIRTY=true fi |