Skip to content

Commit

Permalink
narcissus: tweak prune script a bit
Browse files Browse the repository at this point in the history
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
koenkooi committed Nov 24, 2010
1 parent 10bd73d commit 2070579
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions prune.php
@@ -1,11 +1,16 @@
<pre>
<?
/* Narcissus - Online image builder for the angstrom distribution
* Koen Kooi (c) 2010 - GPLv2
*
*/

passthru ("find /tmp -name 'opkg*' -mtime +2 -exec rm -r {} \;&& exit");
passthru ("find deploy -depth -mindepth 2 -maxdepth 2 -mtime +3 -exec rm -r {} \;&& exit");
passthru ("find work -depth -mindepth 1 -maxdepth 2 -mtime +2 -exec rm -rf {} \;&& exit");
print "rm /tmp\n";
passthru ("find /tmp -name 'opkg*' -mtime +2 -exec rm -rv {} \;&& exit");
print "rm deploy\n";
passthru ("find deploy -depth -mindepth 2 -maxdepth 2 -mtime +3 -exec rm -rv {} \;&& exit");
print "rm work\n";
passthru ("find work -depth -mindepth 1 -maxdepth 2 -mtime +1 -exec rm -rfv {} \;&& exit");

?>
</pre>

0 comments on commit 2070579

Please sign in to comment.