summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-19 10:04:38 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-19 10:04:38 +0100
commit9fa73960f8ee5ade853cdb394a7a05ca1ae16e1a (patch)
tree4abc089adad39f060f40e4034311a9f8e3cecb78
parent1147b2b80b723fe2c85f9a65a17da89c4252fb46 (diff)
downloadjenkins.debian.net-9fa73960f8ee5ade853cdb394a7a05ca1ae16e1a.tar.xz
reproducible: actually delete old schroots
-rwxr-xr-xbin/reproducible_maintainance.sh6
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