[Patches] [PATCH] Bug 7008 - create tmp dir for zebra
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Fri Nov 4 22:25:02 NZDT 2011
From: Robin Sheat <robin at catalyst.net.nz>
Date: Wed, 12 Oct 2011 18:29:28 +1300
Subject: [PATCH] Bug 7008 - create tmp dir for zebra
Content-Type: text/plain; charset="utf-8"
http://koha-community.org
Sometimes zebra needs a tmp dir in order to work. This ensures that it
is created both by koha-create-dirs in the packages, and by
rebuild_zebra when it runs.
--
tested ok, signing off
Signed-off-by: Mason James <mtj at kohaaloha.com>
---
debian/scripts/koha-create-dirs | 5 +++++
misc/migration_tools/rebuild_zebra.pl | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/debian/scripts/koha-create-dirs b/debian/scripts/koha-create-dirs
index 7daf57a..06b7bff 100755
--- a/debian/scripts/koha-create-dirs
+++ b/debian/scripts/koha-create-dirs
@@ -42,10 +42,15 @@ do
userdir "$name" "/etc/koha/sites/$name"
userdir "$name" "/var/lib/koha/$name"
userdir "$name" "/var/lib/koha/$name/authorities"
+ userdir "$name" "/var/lib/koha/$name/authorities/key"
+ userdir "$name" "/var/lib/koha/$name/authorities/register"
+ userdir "$name" "/var/lib/koha/$name/authorities/shadow"
+ userdir "$name" "/var/lib/koha/$name/authorities/tmp"
userdir "$name" "/var/lib/koha/$name/biblios"
userdir "$name" "/var/lib/koha/$name/biblios/key"
userdir "$name" "/var/lib/koha/$name/biblios/register"
userdir "$name" "/var/lib/koha/$name/biblios/shadow"
+ userdir "$name" "/var/lib/koha/$name/biblios/tmp"
userdir "$name" "/var/lock/koha/$name"
userdir "$name" "/var/lock/koha/$name/authorities"
userdir "$name" "/var/lock/koha/$name/biblios"
diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl
index 6fa6501..46b054d 100755
--- a/misc/migration_tools/rebuild_zebra.pl
+++ b/misc/migration_tools/rebuild_zebra.pl
@@ -175,7 +175,7 @@ if ($keep_export) {
sub check_zebra_dirs {
my ($base) = shift() . '/';
my $needed_repairing = 0;
- my @dirs = ( '', 'key', 'register', 'shadow' );
+ my @dirs = ( '', 'key', 'register', 'shadow', 'tmp' );
foreach my $dir (@dirs) {
my $bdir = $base . $dir;
if (! -d $bdir) {
--
1.7.2.5
More information about the Patches
mailing list