From 17400198f02f30ec5ad2710efe6f10a950a96879 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 6 Feb 2020 11:33:12 +0100 Subject: [PATCH] Bug 24526: Add the confirm flag to the cronjob files Signed-off-by: Martin Renvoize --- 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 . -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.39.5