diff options
author | onefang | 2023-05-11 16:04:37 +1000 |
---|---|---|
committer | onefang | 2023-05-11 16:04:37 +1000 |
commit | d7d94f91ef8e54be08342cd220d9d482a7d2a033 (patch) | |
tree | 6d0eac6332781706d59a15ad2643b77d04fd3127 /update_apt-panopticon | |
parent | Clean out old tarballs to. (diff) | |
download | apt-panopticon-d7d94f91ef8e54be08342cd220d9d482a7d2a033.zip apt-panopticon-d7d94f91ef8e54be08342cd220d9d482a7d2a033.tar.gz apt-panopticon-d7d94f91ef8e54be08342cd220d9d482a7d2a033.tar.bz2 apt-panopticon-d7d94f91ef8e54be08342cd220d9d482a7d2a033.tar.xz |
More auto delete tweaks.
Diffstat (limited to 'update_apt-panopticon')
-rwxr-xr-x | update_apt-panopticon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/update_apt-panopticon b/update_apt-panopticon index eee53db..dde18a5 100755 --- a/update_apt-panopticon +++ b/update_apt-panopticon | |||
@@ -37,7 +37,8 @@ find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -p | |||
37 | if [ "z" != "z${KEEPDAYS}" ] ; then | 37 | if [ "z" != "z${KEEPDAYS}" ] ; then |
38 | # Remove old results. | 38 | # Remove old results. |
39 | find . -daystart -maxdepth 2 -name "stamp" -type f ! -mtime $((0 - ${KEEPDAYS})) -printf "%h\0" | xargs -0rt /bin/rm -fr | 39 | find . -daystart -maxdepth 2 -name "stamp" -type f ! -mtime $((0 - ${KEEPDAYS})) -printf "%h\0" | xargs -0rt /bin/rm -fr |
40 | find . -daystart -maxdepth 2 -name "results_*.tar.xz" -type f ! -mtime $((0 - ${KEEPDAYS})) -print0 | xargs -0rt /bin/rm -fr | 40 | find . -daystart -maxdepth 2 -name "results_*.tar.xz" -type f ! -mtime $((0 - ${KEEPDAYS})) -print0 | xargs -0rt /bin/rm -f |
41 | find . -maxdepth 1 -name "results_*" -type d -empty -print0 | xargs -0rt /bin/rm -fr | ||
41 | fi | 42 | fi |
42 | 43 | ||
43 | rm ../results; ln -s apt-panopticon/results_old ../results | 44 | rm ../results; ln -s apt-panopticon/results_old ../results |