https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43616
--- Comment #8 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 206730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=206730&action=edit Bug 43616: Register patron_imports.pl in the default crontab templates Adds the new cronjob to both places Koha ships default cron scheduling from, so the feature actually runs out of the box once a librarian configures an account under Tools > Schedule patron imports: - debian/koha-common.cron.daily: added alongside the other nightly per-patron-account jobs (membership_expiry.pl, etc.), run via koha-foreach for every enabled instance, same as its neighbours. - misc/cronjobs/crontab.example: added as its own commented section for development/from-source installs, at 3am matching the cronjob's own POD-documented example schedule. With no accounts configured (the default), the script exits immediately after finding zero active patron_import_accounts rows - this entry is a no-op until a librarian opts in via the Tools page, matching the pattern already followed by every other conditional job in the same files (e.g. plugins_nightly.pl, archive_purchase_suggestions.pl). Test plan: 1. Apply the whole patchset. 2. Check debian/koha-common.cron.daily contains a "koha-foreach --chdir --enabled .../patron_imports.pl -c" line alongside the other koha-foreach entries. 3. Check misc/cronjobs/crontab.example contains a "SCHEDULED PATRON IMPORTS" section with a 0 3 * * * entry for patron_imports.pl -c. 4. With no patron_import_accounts configured, run `misc/cronjobs/patron_imports.pl -c -v` directly and confirm it exits cleanly with no output and no error (the no-op case these templates rely on). -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
