]> git.koha-community.org Git - koha.git/commit
Bug 10379: silence zebra rebuild cron when no instances are enabled
authorRobin Sheat <robin@catalyst.net.nz>
Thu, 30 May 2013 04:12:13 +0000 (16:12 +1200)
committerBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sun, 14 Jul 2013 14:09:52 +0000 (11:09 -0300)
commit22341e5fe36e54523464b633de6a500bc706e248
tree73a2de0f1a2d19e231301613e95e734d9239e76f
parent5fda7f7961f40819842fa52b6eaac30747ad4e26
Bug 10379: silence zebra rebuild cron when no instances are enabled

This adds a -q option to koha-rebuild-zebra that prevents it outputting
help if no instances are provided on the command line. This means that
if you've just installed the package, you won't get messages from cron
telling you how to use the script.

Test plan:
* install koha-common 3.12 or master onto a system with no enabled
  instances.
* note that you or the sysadmin will start getting emails every 5
  minutes.
* replace /etc/cron.d/koha-common and /usr/sbin/koha-rebuild-zebra with
  the versions from this patch.
* note that the emails stop flowing.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
"sudo koha-rebuild-zebra -q" gives no output, as expected.
Followed the test plan, all looks good.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit c31e553a72d40bf0b1c099284ecbb4b95833e186)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit cc9b3522b192b8510a4846cd7a4b3aca3e8a0a07)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit cc9b3522b192b8510a4846cd7a4b3aca3e8a0a07)
debian/koha-common.cron.d
debian/scripts/koha-rebuild-zebra