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)
committerChris Hall <followingthepath@gmail.com>
Thu, 18 Jul 2013 09:17:05 +0000 (21:17 +1200)
commit7167ace6898d224e54878f0e7a608061f052fdec
treee4b8c7a04bf0fb11bad06c2df264ff972ca66e83
parent3714af3015f24ebfcd25b9742fe73831ba23a796
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)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry oicked from commit 22341e5fe36e54523464b633de6a500bc706e248)
debian/koha-common.cron.d
debian/scripts/koha-rebuild-zebra