if $SCRIPT_PATH/cleanup_liveboot.py "keep" "$DIRECTORY" ; then
echo -n "$DIRECTORY: "
echo keep flag set, keeping it.
+ let "KEPT=KEPT+1"
else
SECOND_PASS="$SECOND_PASS $DIRECTORY"
fi
for DIRECTORY in $SECOND_PASS ; do
echo -n "$DIRECTORY: "
if [ $KEPT -le $AMOUNT_TO_KEEP ] ; then
- echo keep it, there is enough space left...
+ echo "keep it, only $KEPT images kept so far."
let "KEPT=KEPT+1"
else
echo "deleted."
df -h $LIVEBOOT_IMAGE_PATH
echo
echo "The liveboot images are copied to other servers which might not have as much space available."
+echo