From bc472e932eb4a54abbc92e97e43e03befe0b0ca2 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 5 Mar 2025 13:27:37 +0000 Subject: [PATCH] Bug 39250: Add archive_purchase_suggestions.pl to cron.daily commented It will be a commented line in the debian template and added also in the crontab.example file. As mentioned on BZ, the comment can easily be removed automatically during Docker builds or startups etc. Test plan: Just read the patch. Nothing changes here actually. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize --- debian/koha-common.cron.daily | 1 + misc/cronjobs/crontab.example | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index ef01f154add..242b3f27bcd 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -16,6 +16,7 @@ # along with this program. If not, see . koha-run-backups --days 2 --output /var/spool/koha +#koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/archive_purchase_suggestions.pl -c --age=years:1 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -c koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_checkin.pl koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/recalls/expire_recalls.pl diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 1f61b541875..4d609cf081d 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -88,6 +88,9 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # clean up databases nightly. Be sure not to run this with --sessions during a time when the system is in use! 16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --confirm --sessions --zebraqueue 10 --list-invites --temp-uploads --del-unv-selfreg 14 +# archive older purchase suggestions. Replace XX to define age in years (or change to days or months) +@daily __KOHA_USER__ $KOHA_CRON_PATH/archive_purchase_suggestions.pl -c --age=years:XX + # delete old purchase suggestions weekly. Replace XX with a number to define the age of suggestions to delete. @weekly __KOHA_USER__ $KOHA_CRON_PATH/purge_suggestions.pl --confirm --days XX > /dev/null 2>&1 -- 2.48.1