From f29ee587132fc71bfaf4ced3a7c97fa3683ccf7e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 24 Aug 2016 16:25:01 +0200 Subject: [PATCH] Bug 17159: Do not conditionally run cleanup_database with --mail Content-Type: text/plain; charset=utf-8 As a simplification, I propose here to just call cleanup_database in only one line. And not test the mail enabled/disabled flag for the --mail option. If we have no lines to delete, that's just fine and we can go home early :) --- debian/koha-common.cron.daily | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index cbd7eed..3eda815 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -21,8 +21,7 @@ koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/advance_notices.pl - koha-foreach --enabled /usr/share/koha/bin/cronjobs/membership_expiry.pl -c koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/cancel_expired_holds.pl >/dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/services_throttle.pl > /dev/null 2>&1 -koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites -koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail +koha-foreach --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --mail koha-foreach --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 koha-foreach --enabled /usr/share/koha/bin/cronjobs/automatic_renewals.pl koha-run-backups --days 2 --output /var/spool/koha -- 1.7.10.4