Browse Source

Bug 24526: Add the confirm flag to the cronjob files

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
20.05.x
Jonathan Druart 3 years ago
committed by Martin Renvoize
parent
commit
17400198f0
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 2
      debian/koha-common.cron.daily
  2. 8
      misc/cronjobs/automatic_renewals.pl
  3. 2
      misc/cronjobs/crontab.example

2
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

8
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

2
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

Loading…
Cancel
Save