[Koha-bugs] [Bug 20745] indexing/searching not active at end of installation

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 10 15:26:36 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20745

--- Comment #9 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #8)
> heh, it's missing :)

--- a/misc/migration_tools/rebuild_zebra.pl
+++ b/misc/migration_tools/rebuild_zebra.pl
@@ -242,9 +242,14 @@ if ($daemon_mode) {
         if (_flock($LockFH, LOCK_EX|LOCK_NB)) {
             eval {
                 $dbh = C4::Context->dbh;
-                if( zebraqueue_not_empty() ) {
-                    Koha::Caches->flush_L1_caches() if $is_memcached;
-                    do_one_pass();
+                if ( C4::Context->preference('Version') ) {
+                    if( zebraqueue_not_empty() ) {
+                        Koha::Caches->flush_L1_caches() if $is_memcached;
+                        do_one_pass();
+                    }
+                }
+                else {
+                    warn "Warning: Koha is not installed.";
                 }

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list