From 9fa73960f8ee5ade853cdb394a7a05ca1ae16e1a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 19 Feb 2015 10:04:38 +0100 Subject: reproducible: actually delete old schroots --- bin/reproducible_maintainance.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3-54-g00ecf