summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2020-04-02 20:43:21 +0200
committerHolger Paradies <retabell@gmx.de>2020-04-02 20:43:21 +0200
commit7a7b88d06427b12aa5577d5931cfafcca53b42c5 (patch)
tree4e94c1b94dff23d97686c2ba42b3676a69fe03b9
parent04588c768c832c8ca86dbb67eca5bc6b0c863aa2 (diff)
downloadkanotix-7a7b88d06427b12aa5577d5931cfafcca53b42c5.zip
kanotix-7a7b88d06427b12aa5577d5931cfafcca53b42c5.tar.gz
delete iso files older then 35 days
-rwxr-xr-xnightly_build.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/nightly_build.bash b/nightly_build.bash
index cc02bc7..7609a04 100755
--- a/nightly_build.bash
+++ b/nightly_build.bash
@@ -2,6 +2,11 @@
cd "$(dirname "$0")"
rm -rf cache tmpfs/cache
+# delete iso files older 35 days
+
+find /data/kanotix/nightly -mtime +35 -type f -print -delete
+find /data/kanotix/nightly -type d -empty -print -delete
+
# reset apt-cacher-ng cache
find /var/cache/apt-cacher-ng \( -type f -name 'Packages*' -o -name 'Sources*' -o -name 'Release*' -o -name 'InRelease*' \) -delete