Version in base suite: 7.9.5-2 Base version: puppetserver_7.9.5-2 Target version: puppetserver_7.9.5-2+deb12u1 Base file: /srv/ftp-master.debian.org/ftp/pool/main/p/puppetserver/puppetserver_7.9.5-2.dsc Target file: /srv/ftp-master.debian.org/policy/pool/main/p/puppetserver/puppetserver_7.9.5-2+deb12u1.dsc changelog | 7 +++++++ puppetserver.cron.daily | 10 ++++++++++ 2 files changed, 17 insertions(+) diff -Nru puppetserver-7.9.5/debian/changelog puppetserver-7.9.5/debian/changelog --- puppetserver-7.9.5/debian/changelog 2023-05-07 15:09:17.000000000 +0000 +++ puppetserver-7.9.5/debian/changelog 2024-09-06 01:30:33.000000000 +0000 @@ -1,3 +1,10 @@ +puppetserver (7.9.5-2+deb12u1) bookworm; urgency=medium + + * ship cronjob to clean up reportdir automatically (Closes: #1078911, + #1080489) + + -- Jérôme Charaoui Thu, 05 Sep 2024 21:30:33 -0400 + puppetserver (7.9.5-2) unstable; urgency=medium * abort service start/reload if mainpid dies (Closes: #1032241) diff -Nru puppetserver-7.9.5/debian/puppetserver.cron.daily puppetserver-7.9.5/debian/puppetserver.cron.daily --- puppetserver-7.9.5/debian/puppetserver.cron.daily 1970-01-01 00:00:00.000000000 +0000 +++ puppetserver-7.9.5/debian/puppetserver.cron.daily 2024-09-06 01:30:33.000000000 +0000 @@ -0,0 +1,10 @@ +#!/bin/sh + +reportdir="$(puppet config print reportdir)" + +if [ -e "$reportdir" ] ; then + find "$reportdir" -type f -ctime +30 -delete + find "$reportdir" -mindepth 1 -type d -empty -delete +fi + +exit 0