]> git.koha-community.org Git - koha.git/commit
Bug 7857 - database upgrade fails with plack
authorDobrica Pavlinusic <dpavlin@rot13.org>
Fri, 30 Mar 2012 20:03:20 +0000 (22:03 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 20 Jun 2012 19:33:26 +0000 (21:33 +0200)
commitb1322bb6cbaa8f4e9077db230261592510047df6
treef42ff01e532b1bb8606b3365a1d0abd2cb2190c9
parenta29a5df175f4112302de71456d4f21d0dd7f48cf
Bug 7857 - database upgrade fails with plack

Updating database structure

Update errors :

    Can't locate C4/Context.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 .) at /srv/koha/installer/data/mysql/updatedatabase.pl line 37.
    BEGIN failed--compilation aborted at /srv/koha/installer/data/mysql/updatedatabase.pl line 37.

It seems that plack cleans enviroment, so we have to re-instart PERL5LIB
so script invocation won't fail.

It also fixes exit 1 which fail with plack.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
installer/install.pl