Clean uup docker and cloud composes older than 3 weeks

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
Dennis Gilmore 2017-05-25 09:43:31 -05:00
parent 811e1ec85e
commit bdb072a84d
2 changed files with 6 additions and 0 deletions

View File

@ -100,3 +100,7 @@ SUBJECT='Fedora '$DIST' compose report: '$SHORTCOMPOSE_ID' changes'
# mutt -e "set from=\"$FROM\"" -e 'set envelope_from=yes' -s "$SUBJECT" $tomail
# done
#fi
# Remove old composes older than 21 days
find $TARGET_DIR/Fedora-Cloud-25-* -xdev -depth -maxdepth 2 -mtime +21 -exec rm -rf {} \;

View File

@ -103,4 +103,6 @@ SUBJECT='Fedora '$DIST' compose report: '$SHORTCOMPOSE_ID' changes'
# done
#fi
# Remove old composes older than 21 days
find $TARGET_DIR/Fedora-Docker-25-* -xdev -depth -maxdepth 2 -mtime +21 -exec rm -rf {} \;