From 330db3d9dc36c52d94ccf6331285dc46341cb9ff Mon Sep 17 00:00:00 2001 From: Doug Kingston Date: Fri, 29 Nov 2013 00:01:22 -0800 Subject: [PATCH 2/2] Bug 11078 Add locking to rebuild_zebra.pl (path fix) 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