From 53ae28fc136bd4cf61aa063ef714b6a1f7a5a9f3 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 2 Jul 2020 07:02:12 +0000 Subject: [PATCH] Bug 24544: Add new cronjob to cron files Content-Type: text/plain; charset=utf-8 Added the additional parameter -hours 2 to prevent a first time run at night to do a full update (perhaps unexpected). I would recommend to run a full update after configuring the preferences. Signed-off-by: Marcel de Rooy --- debian/koha-common.cron.daily | 1 + misc/cronjobs/crontab.example | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/koha-common.cron.daily b/debian/koha-common.cron.daily index b458cd9c28..3e60bfd057 100644 --- a/debian/koha-common.cron.daily +++ b/debian/koha-common.cron.daily @@ -26,4 +26,5 @@ koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/cleanup_database.pl koha-foreach --chdir --enabled --noemail /usr/share/koha/bin/cronjobs/cleanup_database.pl --mail koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/holds/auto_unsuspend_holds.pl > /dev/null 2>&1 koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/merge_authorities.pl -b +koha-foreach --chdir --enabled /usr/share/koha/bin/cronjobs/insert_persistent_id.pl -c -hours 2 koha-run-backups --days 2 --output /var/spool/koha diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 5326a47aa5..49f8abb18b 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -94,3 +94,6 @@ KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs # run merge authorities 20 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/merge_authorities.pl -b + +# add persistent identifiers +30 1 * * * __KOHA_USER__ $KOHA_CRON_PATH/insert_persistent_id.pl -c -hours 2 -- 2.11.0