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:
parent
d82c1cf05f
commit
57d11aee2c
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue