Bug 13793: Make the installer output the result of the updates under Plack
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 4 Mar 2015 10:51:56 +0000 (11:51 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 15 Mar 2015 12:17:42 +0000 (09:17 -0300)
commit83fee24dbcb03769649ed8afdab2d7a9d1e2a8a2
tree7efb3cccd33bd49256d67e10d4f8f2eec27ba11c
parent66db4a64ef4575afd94588f8ebb8685fa9c522d5
Bug 13793: Make the installer output the result of the updates under Plack

Test plan:
0/ Start plack for intranet
1/ Create a new entry in updatedatabase.pl, something like:

$DBversion = "3.19.00.013";
if(CheckVersion($DBversion)) {
    print "Upgrade to $DBversion done (Bug test plack - This is a
est)\n";
    print "Upgrade to $DBversion done (Bug test plack - This is anoter
est)\n";
    print "Upgrade to $DBversion done (Bug test plack - This is a third
est)\n";
    warn "this is an error";
}
and modify the kohaversion.pl accordingly.
You can also warn something to simulate an error.
2/ Go on the mainpage (or wherever you want), you should be redirected
to the installer
3/ Notice that the output of the updatedatabase is displayed on the
screen.
4/ Confirm that new files have been created in your Koha log directory
(check the logdir entry in your koha conf file).
5/ Confirm that the output is still displayed without Plack.

Signed-off-by: Dobrica Pavlinusic <dpavlin@rot13.org>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
installer/install.pl