From cb14ba6ffb535dc8d58b423538451b2afe3675b5 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Fri, 10 Apr 2015 14:40:18 +0200 Subject: reproducible: maintenance: remove old schroots with the --one-file-system (also as specified in the sudoers file) --- bin/reproducible_maintenance.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 9b8221d7..341c93a7 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.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 sudo rm -rf {} \; + find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec sudo rm -rf --one-file-system {} \; echo "$OLDSTUFF" echo DIRTY=true -- cgit v1.2.3-70-g09d2