4 use strict; # please develop with the strict pragma
7 Install::setlanguage('en');
9 ###############################################
10 # SET THE etcdir ENVIRONMENT VAR INSTEAD #
11 ###############################################
12 Install::setetcdir($ENV{etcdir}||'/etc');
17 my $kohaversion=`cat koha.version`;
19 Install::setkohaversion $kohaversion;
22 if ($kohaversion =~ /RC/) {
23 releasecandidatewarning();
26 my $answer = showmessage(getmessage('WelcomeToUpgrader',[$kohaversion,$::newversion]),'yn');
28 unless ($answer =~/y/i) {
29 showmessage(getmessage('AbortingInstall'),'none');
32 print "Great! continuing upgrade... \n";
35 Install::setkohaversion($::newversion);
40 # custom templates warning added to installfiles();
44 showmessage(getmessage('UpgradeCompleted',['FIXME','FIXME','FIXME','FIXME','FIXME','FIXME']),'PressEnter');
46 # my $reply=showmessage('Would you like to complete a survey about your library? [Y]/N: ', 'yn', 'y');
48 # system("perl kohareporter");