[Koha-patches] [PATCH 2/2] Bug 11078 Add locking to rebuild_zebra.pl (path fix)

Doug Kingston dpk at randomnotes.org
Fri Nov 29 09:07:26 CET 2013


Add missing reference to subdirectory for rebuild_zebra locks
under zebra lock diretory.  This is already handled correctly
in the docs, template and makefiles.  The code in fact works
either way, but docs and reality should match.
---
 misc/migration_tools/rebuild_zebra.pl |    1 +
 1 file changed, 1 insertion(+)

diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl
index 1e9b300..6e713ff 100755
--- a/misc/migration_tools/rebuild_zebra.pl
+++ b/misc/migration_tools/rebuild_zebra.pl
@@ -159,6 +159,7 @@ my ($biblioitemnumbertagfield,$biblioitemnumbertagsubfield) = &GetMarcFromKohaFi
 # by koha-zebra-ctl.sh.
 
 my $lockdir = C4::Context->config("zebra_lockdir") // "/var/lock";
+$lockdir .= "/rebuild";
 mkpath($lockdir, 0, oct(755)) unless (-d $lockdir);
 my $lockfile = $lockdir . "/rebuild..LCK";
 
-- 
1.7.9.5



More information about the Koha-patches mailing list