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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2085 by blino, Mon Jun 6 21:25:44 2011 UTC revision 2086 by blino, Wed Nov 9 22:36:29 2011 UTC
# Line 11  find $DRAKLIVE_ROOT/{chroot/*,build/*/*} Line 11  find $DRAKLIVE_ROOT/{chroot/*,build/*/*}
11  # keep dist (iso + lists) for all sets during 20 days  # keep dist (iso + lists) for all sets during 20 days
12  MAX_DIST_AGE=20  MAX_DIST_AGE=20
13  find $DRAKLIVE_ROOT/build/*/dist -maxdepth 0 -mtime +$(expr $MAX_DIST_AGE - 1) -exec $RM {} \;  find $DRAKLIVE_ROOT/build/*/dist -maxdepth 0 -mtime +$(expr $MAX_DIST_AGE - 1) -exec $RM {} \;
14    
15    find /var/lib/draklive/build -maxdepth 1 -links 2 -exec rmdir {} \;

Legend:
Removed from v.2085  
changed lines
  Added in v.2086

  ViewVC Help
Powered by ViewVC 1.1.26