Bugzilla – Attachment 178969 Details for
Bug 39250
Add archive_purchase_suggestions.pl to cron.daily commented
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39250: Add archive_purchase_suggestions.pl to cron.daily commented
Bug-39250-Add-archivepurchasesuggestionspl-to-cron.patch (text/plain), 2.29 KB, created by
Marcel de Rooy
on 2025-03-05 13:31:57 UTC
(
hide
)
Description:
Bug 39250: Add archive_purchase_suggestions.pl to cron.daily commented
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2025-03-05 13:31:57 UTC
Size:
2.29 KB
patch
obsolete
>From 49f7264bc4a1f896abf4fbfde20f3073b2bdc6b8 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 5 Mar 2025 13:27:37 +0000 >Subject: [PATCH] Bug 39250: Add archive_purchase_suggestions.pl to cron.daily > commented >Content-Type: text/plain; charset=utf-8 > >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 <m.de.rooy@rijksmuseum.nl> >--- > 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 ef01f154ad..242b3f27bc 100644 >--- a/debian/koha-common.cron.daily >+++ b/debian/koha-common.cron.daily >@@ -16,6 +16,7 @@ > # along with this program. If not, see <http://www.gnu.org/licenses/>. > > 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 1f61b54187..4d609cf081 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.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39250
:
178969
|
179068