Bug 5077 - ensure rebuild_zebra will run somewhere it can read

This prevents it leaving files lying around in /tmp

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Robin Sheat 2010-08-24 16:28:48 +12:00 committed by Galen Charlton
parent d82c1cf05f
commit 57d11aee2c
3 changed files with 5 additions and 2 deletions

View File

@ -117,6 +117,7 @@ then
fi
adduser --no-create-home --disabled-login \
--gecos "Koha instance $username" \
--home "/var/lib/koha/$name" \
--quiet "$username"
# Create the site-specific directories.

View File

@ -31,7 +31,7 @@ fi
for name in "$@"
do
sudo -u "$name-koha" \
sudo -u "$name-koha" -H \
env PERL5LIB=/usr/share/koha/lib \
KOHA_CONF="/etc/koha/sites/$name/koha-conf.xml" \
/usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -a $opts

View File

@ -16,7 +16,9 @@ use C4::AuthoritiesMarc;
#
$|=1; # flushes output
# If the cron job starts us in an unreadable dir, we will break without
# this.
chdir $ENV{HOME} if (!(-r '.'));
my $directory;
my $nosanitize;
my $skip_export;