summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_maintainance.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 6f2ae0fb..f5dea7d8 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -37,11 +37,11 @@ fi
cp -v $PACKAGES_DB /var/lib/jenkins/userContent/
# delete old temp directories
-OLDSTUFF=$(find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec ls -lad {} \;)
+OLDSTUFF=$(find $REP_RESULTS -maxdepth 1 -type d -name "tmp.*" -mtime +2 -exec ls -lad {} \;)
if [ ! -z "$OLDSTUFF" ] ; then
echo
echo "Warning: old temp directories found in $REP_RESULTS"
- find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec rm -rv {} \;
+ find $REP_RESULTS -maxdepth 1 -type d -name "tmp.*" -mtime +2 -exec rm -rv {} \;
echo "These old directories have been deleted."
echo
DIRTY=true
@@ -51,7 +51,9 @@ fi
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 $REP_RESULTS"
+ echo "Warning: old schroots found in /schroots"
+ echo $OLDSTUFF
+ echo "TODO: automatically delete them, please cleanup manually for now..."
echo
DIRTY=true
fi
@@ -83,7 +85,6 @@ if [ ! -z "$FAILED_BUILDS" ] ; then
DIRTY=true
fi
-
# find processes which should not be there
HAYSTACK=$(mktemp)
RESULT=$(mktemp)