]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 26 Jun 2013 15:55:23 +0000 (08:55 -0700)
commitc31e553a72d40bf0b1c099284ecbb4b95833e186
treea58987ffc69a4f9d806fd155dfe10d7a49812d60
parent061eb659267925388d1902987efaf275e536f953
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>
debian/koha-common.cron.d
debian/scripts/koha-rebuild-zebra