/[adm]/puppet/modules/draklive/files/clean-live.sh
ViewVC logotype

Annotation of /puppet/modules/draklive/files/clean-live.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1703 - (hide annotations) (download) (as text)
Mon Jun 6 21:24:12 2011 UTC (12 years, 10 months ago) by blino
File MIME type: application/x-sh
File size: 445 byte(s)
add script and cron to clean live build data
1 blino 1703 #!/bin/bash
2    
3     # clean old draklive build sets
4     DRAKLIVE_ROOT=/var/lib/draklive
5     RM="echo rm -rf"
6    
7     # keep only chroot/build sets from previous day
8     MAX_BUILD_AGE=1
9     find $DRAKLIVE_ROOT/{chroot/*,build/*/*} -maxdepth 0 -not -name dist -mtime +$(expr $MAX_BUILD_AGE - 1) -exec $RM {} \;
10    
11     # keep dist (iso + lists) for all sets during 20 days
12     MAX_DIST_AGE=20
13     find $DRAKLIVE_ROOT/build/*/dist -maxdepth 0 -mtime +$(expr $MAX_DIST_AGE - 1) -exec $RM {} \;

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.30