From 3edc6337c00c4f6273c07cabc886733e93e8029a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 26 Feb 2015 18:50:13 +0100 Subject: reproducible: use sudo to remove old schroots --- bin/reproducible_maintainance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index b2aad7c0..7e08b5fd 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -52,7 +52,7 @@ OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime + if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old schroots found in /schroots, which have been deleted:" - find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec rm -rf {} \; + find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec sudo rm -rf {} \; echo "$OLDSTUFF" echo DIRTY=true -- cgit v1.2.3-70-g09d2