Package: apt-cacher-ng Tags: patch Followup-For: Bug #985406 Dear Maintainer,
I also see this bug. Attached is one way to solve it - depends only on find(1). i put this as a separate file in /etc/cron.daily/ but you might want to append it to the existing cron script. Would be great to get this fixed Thanks for considering. -- Package-specific info: -- System Information: Debian Release: 11.0 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-8-amd64 (SMP w/1 CPU thread) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt-cacher-ng depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.77 ii dpkg 1.20.9 ii libbz2-1.0 1.0.8-4 ii libc6 2.31-13 ii libevent-2.1-7 2.1.12-stable-1 ii libevent-pthreads-2.1-7 2.1.12-stable-1 ii libgcc-s1 10.2.1-6 ii liblzma5 5.2.5-2 ii libssl1.1 1.1.1k-1+deb11u1 ii libstdc++6 10.2.1-6 ii libsystemd0 247.3-6 ii libwrap0 7.6.q-31 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages apt-cacher-ng recommends: ii ca-certificates 20210119 Versions of packages apt-cacher-ng suggests: pn avahi-daemon <none> pn doc-base <none> ii libfuse2 2.9.9-5 -- Configuration Files: /etc/apt-cacher-ng/acng.conf changed [not included] /etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: '/etc/apt-cacher-ng/security.conf' -- debconf information excluded
#!/bin/sh if [ -d /var/log/apt-cacher-ng ]; then # rm older than 7 days find /var/log/apt-cacher-ng -maxdepth 1 -name 'maint_*.log.html.gz' -type f -user apt-cacher-ng -mtime +7 -delete # gzip older than 1 day find /var/log/apt-cacher-ng -maxdepth 1 -name 'maint_*.log.html' -type f -user apt-cacher-ng -mtime +1 -exec gzip '{}' ';' fi