From 5c60288a306d86470ced0d55813e62c5cdf1bc77 Mon Sep 17 00:00:00 2001 From: Robin Sheat Date: Wed, 12 Oct 2011 18:29:28 +1300 Subject: [PATCH] Bug 7008 - create tmp dir for zebra 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 (cherry picked from commit 849547df68e224100ebfa13f76f7c6ef1d826460) Signed-off-by: Chris Nighswonger --- debian/scripts/koha-create-dirs | 5 +++++ misc/migration_tools/rebuild_zebra.pl | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/scripts/koha-create-dirs b/debian/scripts/koha-create-dirs index 7daf57a6c7..06b7bfffb2 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 fa87f22a91..fbfd3af060 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) { -- 2.39.5