Bugzilla – Attachment 98520 Details for
Bug 24526
Add verbose and test modes to the `automatic_renewals.pl` cronjob
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24526: Add the confirm flag to the cronjob files
Bug-24526-Add-the-confirm-flag-to-the-cronjob-file.patch (text/plain), 2.75 KB, created by
Jonathan Druart
on 2020-02-06 10:33:44 UTC
(
hide
)
Description:
Bug 24526: Add the confirm flag to the cronjob files
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-06 10:33:44 UTC
Size:
2.75 KB
patch
obsolete
>From c1309cdab06ccf7544a7938ce916673e36c34579 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Feb 2020 11:33:12 +0100 >Subject: [PATCH] Bug 24526: Add the confirm flag to the cronjob files > >--- > debian/koha-common.cron.daily | 2 +- > misc/cronjobs/automatic_renewals.pl | 8 ++++---- > misc/cronjobs/crontab.example | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily >index 63eb0707b0..b458cd9c28 100644 >--- a/debian/koha-common.cron.daily >+++ b/debian/koha-common.cron.daily >@@ -15,7 +15,7 @@ > # You should have received a copy of the GNU General Public License > # along with this program. If not, see <http://www.gnu.org/licenses/>. > >-koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl >+koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl -c > koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/fines.pl > koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/overdue_notices.pl -t > koha-foreach --chdir --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl -c >diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl >index 599576994e..d7bc5a140b 100755 >--- a/misc/cronjobs/automatic_renewals.pl >+++ b/misc/cronjobs/automatic_renewals.pl >@@ -23,10 +23,10 @@ automatic_renewals.pl - cron script to renew loans > > =head1 SYNOPSIS > >-./automatic_renewals.pl [--send-notices] >+./automatic_renewals.pl [-c|--confirm] [--send-notices] > > or, in crontab: >-0 3 * * * automatic_renewals.pl >+0 3 * * * automatic_renewals.pl -c > > =head1 DESCRIPTION > >@@ -44,11 +44,11 @@ Send AUTO_RENEWALS notices to patrons if the auto renewal has been done. > > Note that this option does not support digest yet. > >-=item B<--verbose> >+=item B<-v|--verbose> > > Print report to standard out. > >-=item B<--confirm> >+=item B<-c|--confirm> > > Without this parameter no changes will be made > >diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example >index 80c1d9eeba..5326a47aa5 100644 >--- a/misc/cronjobs/crontab.example >+++ b/misc/cronjobs/crontab.example >@@ -48,7 +48,7 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs > > # AUTOMATIC RENEWAL + FINES + OVERDUE NOTICES > # Sequence is important - renew what can be renewed, charge fines for the rest, print fine amount into overdue notices >-5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl; $KOHA_CRON_PATH/fines.pl; $KOHA_CRON_PATH/overdue_notices.pl -t >+5 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/automatic_renewals.pl -c; $KOHA_CRON_PATH/fines.pl; $KOHA_CRON_PATH/overdue_notices.pl -t > > # ADVANCE NOTICES > 10 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/advance_notices.pl -c >-- >2.11.0
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 24526
:
98037
|
98059
|
98081
|
98082
|
98083
|
98497
|
98498
|
98499
|
98500
|
98501
| 98520