From 8042267a7872bebecbb99c4638467c4d1225a06c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 14 Dec 2016 13:46:06 +0100 Subject: [PATCH] Bug 17669: Add new switch to crontab example and debian daily cron file The new switch for deleting temporary uploads in cleanup_database can be added to cron. Note: Since the option --temp-uploads does only purge temporary uploads when triggered by the preference Upload_PurgeTemporaryFiles_Days, it can be safely added here. Test plan: There is actually nothing to test here if you followed the preceding test plans. Just verify that the switch is inserted ocrrectly. Signed-off-by: Mirko Tietgen Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- debian/koha-common.cron.daily | 2 +- misc/cronjobs/crontab.example | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index 0642e44c2b..26e6fb455d 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -23,7 +23,7 @@ koha-foreach --enabled /usr/share/koha/bin/cronjobs/serialsUpdate.pl -c 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 /usr/share/koha/bin/cronjobs/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads koha-foreach --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --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/merge_authorities.pl -b diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 8cb0b1777e..f3dad73f15 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -87,7 +87,7 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs 59 23 * * * __KOHA_USER__ $KOHA_CRON_PATH/services_throttle.pl > /dev/null 2>&1 # 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 --sessions --zebraqueue 10 --list-invites +16 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/cleanup_database.pl --sessions --zebraqueue 10 --list-invites --temp-uploads # 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 --days XX > /dev/null 2>&1 -- 2.39.5