Lines 143-149
my ($biblioitemnumbertagfield,$biblioitemnumbertagsubfield) = &GetMarcFromKohaFi
Link Here
|
143 |
# We need to create our own lock directory which incorporates the database instance |
143 |
# We need to create our own lock directory which incorporates the database instance |
144 |
# we are indexing to facilitate multiple instances on the same machine. |
144 |
# we are indexing to facilitate multiple instances on the same machine. |
145 |
|
145 |
|
146 |
my $lockdir = C4::Context->config("lockdir") . "/koha_rebuild_zebra_" . C4::Context->config("database"); |
146 |
my $lockdir = C4::Context->config("lockdir"); |
|
|
147 |
$lockdir = "/var/lock" if $lockdir == ""; |
148 |
$lockdir .= ("/koha_rebuild_zebra_" . C4::Context->config("database")); |
147 |
mkpath($lockdir, 0, 0755) unless (-d $lockdir); |
149 |
mkpath($lockdir, 0, 0755) unless (-d $lockdir); |
148 |
my $lockfile = $lockdir . "/lock"; |
150 |
my $lockfile = $lockdir . "/lock"; |
149 |
|
151 |
|
150 |
- |
|
|