From 086ae18d5a5b3da9c1461ec5fec2601804daedbb Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Thu, 25 Oct 2012 18:49:14 +1300 Subject: [PATCH] Bug 8773 - [SIGNED-OFF] detect the existence of Koha::Contrib::Tamil If the required module isn't included, then it directs people to have a look at the wiki page that provides instructions on how to configure the index daemon. Signed-off-by: Tomas Cohen Arazi --- debian/scripts/koha-restart-indexer | 9 +++++++++ debian/scripts/koha-start-indexer | 9 +++++++++ debian/scripts/koha-stop-indexer | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/debian/scripts/koha-restart-indexer b/debian/scripts/koha-restart-indexer index 3668e82..b32c8a2 100755 --- a/debian/scripts/koha-restart-indexer +++ b/debian/scripts/koha-restart-indexer @@ -23,6 +23,15 @@ set -e INDEXDAEMON="koha-index-daemon" PERL5LIB="/usr/share/koha/lib" +if [ ! -e /usr/share/perl5/Koha/Contrib/Tamil/IndexerDaemon.pm ] ; then + cat < /dev/stderr +Koha::Contrib::Tamil::IndexerDaemon was not found. See +http://wiki.koha-community.org/wiki/PackagesIndexDaemon +for instructions on setting up the indexer daemon. +EOE + exit; +fi + for name in "$@" do diff --git a/debian/scripts/koha-start-indexer b/debian/scripts/koha-start-indexer index c992cf6..b83397f 100755 --- a/debian/scripts/koha-start-indexer +++ b/debian/scripts/koha-start-indexer @@ -23,6 +23,15 @@ set -e INDEXDAEMON="koha-index-daemon" PERL5LIB="/usr/share/koha/lib" +if [ ! -e /usr/share/perl5/Koha/Contrib/Tamil/IndexerDaemon.pm ] ; then + cat < /dev/stderr +Koha::Contrib::Tamil::IndexerDaemon was not found. See +http://wiki.koha-community.org/wiki/PackagesIndexDaemon +for instructions on setting up the indexer daemon. +EOE + exit; +fi + for name in "$@" do diff --git a/debian/scripts/koha-stop-indexer b/debian/scripts/koha-stop-indexer index 73163c5..7536000 100755 --- a/debian/scripts/koha-stop-indexer +++ b/debian/scripts/koha-stop-indexer @@ -23,6 +23,15 @@ set -e INDEXDAEMON="koha-index-daemon" PERL5LIB="/usr/share/koha/lib" +if [ ! -e /usr/share/perl5/Koha/Contrib/Tamil/IndexerDaemon.pm ] ; then + cat < /dev/stderr +Koha::Contrib::Tamil::IndexerDaemon was not found. See +http://wiki.koha-community.org/wiki/PackagesIndexDaemon +for instructions on setting up the indexer daemon. +EOE + exit; +fi + for name in "$@" do -- 1.7.10.4