diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-26 18:50:13 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-26 18:50:13 +0100 |
commit | 3edc6337c00c4f6273c07cabc886733e93e8029a (patch) | |
tree | 0ae2f1b912eefeceba5acb56b9e45f0f372b5f2f /bin | |
parent | 02a3fb27fb0ac00b6165104858d9e8ac21883dbc (diff) | |
download | jenkins.debian.net-3edc6337c00c4f6273c07cabc886733e93e8029a.tar.xz |
reproducible: use sudo to remove old schroots
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |