aboutsummaryrefslogtreecommitdiffstats
path: root/modules/draklive
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2011-11-09 22:36:29 +0000
committerOlivier Blin <blino@mageia.org>2011-11-09 22:36:29 +0000
commit89f0d21d20573af73268162fd90231599d3f7e9e (patch)
tree784b7f721e4066706e0cf7264ef77912e7a0bec0 /modules/draklive
parent5b60bffdc9603975cf9d2642e414b93d1043eb8a (diff)
downloadpuppet-89f0d21d20573af73268162fd90231599d3f7e9e.tar
puppet-89f0d21d20573af73268162fd90231599d3f7e9e.tar.gz
puppet-89f0d21d20573af73268162fd90231599d3f7e9e.tar.bz2
puppet-89f0d21d20573af73268162fd90231599d3f7e9e.tar.xz
puppet-89f0d21d20573af73268162fd90231599d3f7e9e.zip
clean empty draklive dirs
Diffstat (limited to 'modules/draklive')
-rwxr-xr-xmodules/draklive/files/clean-live.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/draklive/files/clean-live.sh b/modules/draklive/files/clean-live.sh
index 9866f94b..d095a4c5 100755
--- a/modules/draklive/files/clean-live.sh
+++ b/modules/draklive/files/clean-live.sh
@@ -11,3 +11,5 @@ find $DRAKLIVE_ROOT/{chroot/*,build/*/*} -maxdepth 0 -not -name dist -mtime +$(e
# keep dist (iso + lists) for all sets during 20 days
MAX_DIST_AGE=20
find $DRAKLIVE_ROOT/build/*/dist -maxdepth 0 -mtime +$(expr $MAX_DIST_AGE - 1) -exec $RM {} \;
+
+find /var/lib/draklive/build -maxdepth 1 -links 2 -exec rmdir {} \;