[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] CVS: koha/misc Install.pm,NONE,1.1 installer.pl,1.4,1.5 koha.
From: |
Steve Tonnesen |
Subject: |
[Koha-cvs] CVS: koha/misc Install.pm,NONE,1.1 installer.pl,1.4,1.5 koha.upgrade,1.1,1.2 |
Date: |
Thu, 12 Dec 2002 13:40:42 -0800 |
Update of /cvsroot/koha/koha/misc
In directory sc8-pr-cvs1:/tmp/cvs-serv18380
Modified Files:
installer.pl koha.upgrade
Added Files:
Install.pm
Log Message:
Moving install and upgrade scripts from rel-1-2 branch. This needs testing!
--- NEW FILE ---
package Install; #assumes Install.pm
# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA 02111-1307 USA
[...1308 lines suppressed...]
$variable=~s/\s*$//g;
$value=~s/^\s*//g;
$value=~s/\s*$//g;
$configfile{$variable}=$value;
}
}
$::intranetdir=$configfile{'intranetdir'};
$::opacdir=$configfile{'opacdir'};
$::kohaversion=$configfile{'kohaversion'};
$::kohalogdir=$configfile{'kohalogdir'};
$::database=$configfile{'database'};
$::hostname=$configfile{'hostname'};
$::user=$configfile{'user'};
$::pass=$configfile{'pass'};
}
END { } # module clean-up code here (global destructor)
1;
Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/misc/installer.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** installer.pl 27 Nov 2002 17:49:40 -0000 1.4
--- installer.pl 12 Dec 2002 21:40:40 -0000 1.5
***************
*** 1,31 ****
#!/usr/bin/perl -w # please develop with -w
- # $Id$
-
#use diagnostics;
! # Copyright 2000-2002 Katipo Communications
! #
! # This file is part of Koha.
! #
[...1141 lines suppressed...]
! rename "$::etcdir/koha.conf.tmp", "$::etcdir/koha.conf" || warn "Couldn't
rename file at $::etcdir. Must have write capability.\n";
! updatedatabase();
! populatedatabase();
! showmessage(getmessage('AuthenticationWarning'), 'PressEnter');
! showmessage(getmessage('Completed', [ $::servername, $::intranetport,
$::servername, $::opacport]), 'PressEnter');
! my $reply=showmessage('Would you like to complete a survey about your
library?', 'yn', 'y');
! if ($reply=~/y/i) {
! system("perl kohareporter");
}
Index: koha.upgrade
===================================================================
RCS file: /cvsroot/koha/koha/misc/koha.upgrade,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** koha.upgrade 22 Nov 2002 10:40:12 -0000 1.1
--- koha.upgrade 12 Dec 2002 21:40:40 -0000 1.2
***************
*** 1,9 ****
#!/usr/bin/perl -w
- # $Id$
-
#use diagnostics;
use strict; # please develop with the strict pragma
if ($<) {
--- 1,9 ----
#!/usr/bin/perl -w
#use diagnostics;
use strict; # please develop with the strict pragma
+ use Install;
+ $::language='en';
if ($<) {
***************
*** 14,78 ****
my $input;
- my %configfile;
-
- open (KC, "/etc/koha.conf");
- while (<KC>) {
- chomp;
- (next) if (/^\s*#/);
- if (/(.*)\s*=\s*(.*)/) {
- my $variable=$1;
- my $value=$2;
- # Clean up white space at beginning and end
- $variable=~s/^\s*//g;
- $variable=~s/\s*$//g;
- $value=~s/^\s*//g;
- $value=~s/\s*$//g;
- $configfile{$variable}=$value;
- }
- }
-
- my $intranetdir=$configfile{'intranetdir'};
- my $opacdir=$configfile{'opacdir'};
- my $kohaversion=$configfile{'kohaversion'};
- my $kohalogdir=$configfile{'kohalogdir'};
- my $database=$configfile{'database'};
- my $hostname=$configfile{'hostname'};
- my $user=$configfile{'user'};
- my $pass=$configfile{'pass'};
-
-
- ($kohaversion) || ($kohaversion='unknown version');
- my $newversion=`cat koha.version`;
- chomp $newversion;
- if ($newversion =~ /RC/) {
- print qq|
- =====================
- = RELEASE CANDIDATE =
- =====================
-
- WARNING WARNING WARNING WARNING WARNING
-
- You are about to install Koha version $newversion. This version of Koha is a
- release candidate. It is not intended to be installed on production systems.
- It is being released so that users can test it before we release a final
- version.
-
- |;
- print "Are you sure you want to install Koha $newversion? (Y/[N]): ";
! my $answer = <STDIN>;
! chomp $answer;
- if ($answer eq "Y" || $answer eq "y") {
- print "Great! continuing setup... \n";
- } else {
- print qq|
- Watch for announcements of Koha releases on the Koha mailing list or the Koha
- web site (http://www.koha.org/).
! |;
! exit;
! };
}
--- 14,27 ----
my $input;
! loadconfigfile();
! ($::kohaversion) || ($::kohaversion='unknown version');
! $::newversion=`cat koha.version`;
! chomp $::newversion;
! if ($::newversion =~ /RC/) {
! releasecandidatewarning();
}
***************
*** 83,92 ****
================
! You are attempting to upgrade from Koha $kohaversion to $newversion.
We recommend that you do a complete backup of all your files before upgrading.
This upgrade script will make a backup copy of your files for you.
! Would you like to proceed? ([Y]/N):
|;
--- 32,41 ----
================
! You are attempting to upgrade from Koha $::kohaversion to $::newversion.
We recommend that you do a complete backup of all your files before upgrading.
This upgrade script will make a backup copy of your files for you.
! Would you like to proceed? ([Y]/N):
|;
***************
*** 94,100 ****
chomp $answer;
! if ($answer eq "Y" || $answer eq "y") {
! print "Great! continuing upgrade... \n";
! } else {
print qq|
--- 43,47 ----
chomp $answer;
! if ($answer =~/n/i) {
print qq|
***************
*** 102,161 ****
|;
exit;
};
- #
- # Test for Perl and Modules
- #
- print qq|
! PERL & MODULES
! ==============
!
! |;
- print "\nChecking perl modules ...\n";
- unless (eval "require 5.004") {
- die "Sorry, you need at least Perl 5.004\n";
- }
-
- my @missing = ();
- unless (eval {require DBI}) { push @missing,"DBI" };
- unless (eval {require Date::Manip}) { push @missing,"Date::Manip" };
- unless (eval {require DBD::mysql}) { push @missing,"DBD::mysql" };
- unless (eval {require Net::Z3950}) {
- print qq|
-
- The Net::Z3950 module is missing. This module is necessary if you want to use
- Koha's Z39.50 client to download bibliographic records from other libraries.
- To install this module, you will need the yaz client installed from
- http://www.indexdata.dk/yaz/ and then you can install the perl module with the
- command:
-
- perl -MCPAN -e 'install Net::Z3950'
-
- Press the <ENTER> key to continue:
- |;
- <STDIN>;
- }
-
- #
- # Print out a list of any missing modules
- #
- if (@missing > 0) {
- print "\n\n";
- print "You are missing some Perl modules which are required by Koha.\n";
- print "Once these modules have been installed, rerun this installer.\n";
- print "They can be installed by running (as root) the following:\n";
- foreach my $module (@missing) {
- print " perl -MCPAN -e 'install \"$module\"'\n";
- exit(1);
- }} else{
- print "All modules appear to be installed, continuing...\n";
- };
my $backupdir='/usr/local/koha/backups';
! print "Please specify a backup directory [$backupdir]: ";
$answer = <STDIN>;
--- 49,64 ----
|;
exit;
+ } else {
+ print "Great! continuing upgrade... \n";
};
! checkperlmodules();
my $backupdir='/usr/local/koha/backups';
! print "Please specify a backup directory [$backupdir]: ";
$answer = <STDIN>;
***************
*** 206,210 ****
my $date= sprintf "%4d-%02d-%02d_%02d:%02d:%02d", $year, $month,
$day,$hr,$min,$sec;
! open (MD, "$mysqldir/bin/mysqldump --user=$user --password=$pass
--host=$hostname $database|");
(open BF, ">$backupdir/Koha.backup_$date") || (die "Error opening up backup
file $backupdir/Koha.backup_$date: $!\n");
--- 109,113 ----
my $date= sprintf "%4d-%02d-%02d_%02d:%02d:%02d", $year, $month,
$day,$hr,$min,$sec;
! open (MD, "$mysqldir/bin/mysqldump --user=$::user --password=$::pass
--host=$::hostname $::database|");
(open BF, ">$backupdir/Koha.backup_$date") || (die "Error opening up backup
file $backupdir/Koha.backup_$date: $!\n");
***************
*** 238,242 ****
--- 141,148 ----
%6d borrowers
+ File Listing
+ ---------------------------------------------------------------------
$filels
+ ---------------------------------------------------------------------
Does this look right? ([Y]/N):
***************
*** 261,271 ****
! if ($opacdir && $intranetdir) {
print qq|
I believe that your old files are located in:
! OPAC: $opacdir
! INTRANET: $intranetdir
--- 167,177 ----
! if ($::opacdir && $::intranetdir) {
print qq|
I believe that your old files are located in:
! OPAC: $::opacdir
! INTRANET: $::intranetdir
***************
*** 276,281 ****
if ($answer =~/n/i) {
! $intranetdir='';
! $opacdir='';
} else {
print "Great! continuing upgrade... \n";
--- 182,187 ----
if ($answer =~/n/i) {
! $::intranetdir='';
! $::opacdir='';
} else {
print "Great! continuing upgrade... \n";
***************
*** 284,292 ****
! if (!$opacdir || !$intranetdir) {
! $intranetdir='';
! $opacdir='';
! while (!$intranetdir) {
! print "Please specify the location of your INTRANET files: ";
$answer = <STDIN>;
--- 190,198 ----
! if (!$::opacdir || !$::intranetdir) {
! $::intranetdir='';
! $::opacdir='';
! while (!$::intranetdir) {
! print "Please specify the location of your INTRANET files: ";
$answer = <STDIN>;
***************
*** 294,306 ****
if ($answer) {
! $intranetdir=$answer;
}
! if (! -e "$intranetdir/htdocs") {
print "\nCouldn't find the htdocs directory here. That doesn't
look right.\nPlease enter another location.\n\n";
! $intranetdir='';
}
}
! while (!$opacdir) {
! print "Please specify the location of your OPAC files: ";
$answer = <STDIN>;
--- 200,212 ----
if ($answer) {
! $::intranetdir=$answer;
}
! if (! -e "$::intranetdir/htdocs") {
print "\nCouldn't find the htdocs directory here. That doesn't
look right.\nPlease enter another location.\n\n";
! $::intranetdir='';
}
}
! while (!$::opacdir) {
! print "Please specify the location of your OPAC files: ";
$answer = <STDIN>;
***************
*** 308,316 ****
if ($answer) {
! $opacdir=$answer;
}
! if (! -e "$opacdir/htdocs") {
print "\nCouldn't find the htdocs directory here. That doesn't
look right.\nPlease enter another location.\n\n";
! $opacdir='';
}
}
--- 214,222 ----
if ($answer) {
! $::opacdir=$answer;
}
! if (! -e "$::opacdir/htdocs") {
print "\nCouldn't find the htdocs directory here. That doesn't
look right.\nPlease enter another location.\n\n";
! $::opacdir='';
}
}
***************
*** 326,357 ****
mkdir "$backupdir/kohafiles-$date/opac", 0770;
! my $result=system("cp -R $intranetdir/*
$backupdir/kohafiles-$date/intranet/");
if ($result) {
! print "Error encounted when copying $intranetdir to
$backupdir/kohafiles-$date/intranet/\n";
exit;
} else {
! system("rm -rf $intranetdir/*");
}
! $result=system("cp -R $opacdir/* $backupdir/kohafiles-$date/opac/");
if ($result) {
! print "Error encounted when copying $opacdir to
$backupdir/kohafiles-$date/opac/\n";
exit;
} else {
! system("rm -rf $opacdir/*");
}
! print "Creating $intranetdir/htdocs...\n";
! mkdir ("$intranetdir/htdocs", oct(750));
! print "Creating $intranetdir/cgi-bin...\n";
! mkdir ("$intranetdir/cgi-bin", oct(750));
! print "Creating $intranetdir/modules...\n";
! mkdir ("$intranetdir/modules", oct(750));
! print "Creating $intranetdir/scripts...\n";
! mkdir ("$intranetdir/scripts", oct(750));
! chmod (oct(770), "$opacdir");
! print "Creating $opacdir/htdocs...\n";
! mkdir ("$opacdir/htdocs", oct(750));
! print "Creating $opacdir/cgi-bin...\n";
! mkdir ("$opacdir/cgi-bin", oct(750));
my $httpduser;
--- 232,263 ----
mkdir "$backupdir/kohafiles-$date/opac", 0770;
! my $result=system("cp -R $::intranetdir/*
$backupdir/kohafiles-$date/intranet/");
if ($result) {
! print "Error encounted when copying $::intranetdir to
$backupdir/kohafiles-$date/intranet/\n";
exit;
} else {
! system("rm -rf $::intranetdir/*");
}
! $result=system("cp -R $::opacdir/* $backupdir/kohafiles-$date/opac/");
if ($result) {
! print "Error encounted when copying $::opacdir to
$backupdir/kohafiles-$date/opac/\n";
exit;
} else {
! system("rm -rf $::opacdir/*");
}
! print "Creating $::intranetdir/htdocs...\n";
! mkdir ("$::intranetdir/htdocs", oct(750));
! print "Creating $::intranetdir/cgi-bin...\n";
! mkdir ("$::intranetdir/cgi-bin", oct(750));
! print "Creating $::intranetdir/modules...\n";
! mkdir ("$::intranetdir/modules", oct(750));
! print "Creating $::intranetdir/scripts...\n";
! mkdir ("$::intranetdir/scripts", oct(750));
! chmod (oct(770), "$::opacdir");
! print "Creating $::opacdir/htdocs...\n";
! mkdir ("$::opacdir/htdocs", oct(750));
! print "Creating $::opacdir/cgi-bin...\n";
! mkdir ("$::opacdir/cgi-bin", oct(750));
my $httpduser;
***************
*** 398,449 ****
print "\n\nINSTALLING KOHA...\n";
print "\n\n==================\n";
! print "Copying internet-html files to $intranetdir/htdocs...\n";
! system("cp -R intranet-html/* $intranetdir/htdocs/");
! print "Copying intranet-cgi files to $intranetdir/cgi-bin...\n";
! system("cp -R intranet-cgi/* $intranetdir/cgi-bin/");
! print "Copying script files to $intranetdir/scripts...\n";
! system("cp -R scripts/* $intranetdir/scripts/");
! print "Copying module files to $intranetdir/modules...\n";
! system("cp -R modules/* $intranetdir/modules/");
! print "Copying opac-html files to $opacdir/htdocs...\n";
! system("cp -R opac-html/* $opacdir/htdocs/");
! print "Copying opac-cgi files to $opacdir/cgi-bin...\n";
! system("cp -R opac-cgi/* $opacdir/cgi-bin/");
!
! system("chown -R root.$httpduser $opacdir");
! system("chown -R root.$httpduser $intranetdir");
!
! # LAUNCH SCRIPT
! print "Modifying Z39.50 daemon launch script...\n";
! my $newfile='';
! open (L, "$intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh");
! while (<L>) {
! if (/^RunAsUser=/) {
! $newfile.="RunAsUser=$httpduser\n";
! } elsif (/^KohaZ3950Dir=/) {
! $newfile.="KohaZ3950Dir=$intranetdir/scripts/z3950daemon\n";
! } else {
! $newfile.=$_;
! }
}
! close L;
! system("mv $intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh
$intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh.orig");
! open L, ">$intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh";
! print L $newfile;
! close L;
!
! unless ($kohalogdir && -e $kohalogdir) {
! $kohalogdir='/var/log/koha';
! print "\n\nDirectory for logging by Z39.50 daemon [$kohalogdir]: ";
chomp($input = <STDIN>);
if ($input) {
! $kohalogdir=$input;
}
}
! unless (-e "$kohalogdir") {
! my $result = mkdir 0770, "$kohalogdir";
if ($result==0) {
! my @dirs = split(m#/#, $kohalogdir);
my $checkdir='';
foreach (@dirs) {
--- 304,368 ----
print "\n\nINSTALLING KOHA...\n";
print "\n\n==================\n";
! print "Copying intranet-html files to $::intranetdir/htdocs...\n";
! system("cp -R intranet-html/* $::intranetdir/htdocs/");
! print "Copying intranet-cgi files to $::intranetdir/cgi-bin...\n";
! system("cp -R intranet-cgi/* $::intranetdir/cgi-bin/");
! print "Copying script files to $::intranetdir/scripts...\n";
! system("cp -R scripts/* $::intranetdir/scripts/");
! print "Copying module files to $::intranetdir/modules...\n";
! system("cp -R modules/* $::intranetdir/modules/");
! print "Copying opac-html files to $::opacdir/htdocs...\n";
! system("cp -R opac-html/* $::opacdir/htdocs/");
! print "Copying opac-cgi files to $::opacdir/cgi-bin...\n";
! system("cp -R opac-cgi/* $::opacdir/cgi-bin/");
! system("touch $::opacdir/cgi-bin/opac");
!
! system("chown -R root.$httpduser $::opacdir");
! system("chown -R root.$httpduser $::intranetdir");
!
!
! # Copy custom templates and reports back in
!
! opendir D, "$backupdir/kohafiles-$date/intranet/htdocs/";
! my @dirlist=readdir D;
! foreach (@dirlist) {
! (next) if (/^\./);
! (next) if ($_ eq 'default');
! (next) if ($_ eq 'doc');
! (next) if ($_=~/^koha-/);
! (next) if (-e "$::intranetdir/htdocs/$_");
! print "Restoring custom intranet templates $_...\n";
! system("cp -a $backupdir/kohafiles-$date/intranet/htdocs/$_
$::intranetdir/htdocs/");
! }
!
! opendir D, "$backupdir/kohafiles-$date/opac/htdocs/";
! my @dirlist=readdir D;
! foreach (@dirlist) {
! (next) if (/^\./);
! (next) if ($_ eq 'default');
! (next) if ($_ eq 'doc');
! (next) if ($_=~/^koha-/);
! (next) if (-e "$::opacdir/htdocs/$_");
! print "Restoring custom opac template $_...\n";
! system("cp -a $backupdir/kohafiles-$date/opac/htdocs/$_
$::opacdir/htdocs/");
}
!
!
!
!
!
! unless ($::kohalogdir && -e $::kohalogdir) {
! $::kohalogdir='/var/log/koha';
! print "\n\nDirectory for logging by Z39.50 daemon [$::kohalogdir]: ";
chomp($input = <STDIN>);
if ($input) {
! $::kohalogdir=$input;
}
}
! unless (-e "$::kohalogdir") {
! my $result = mkdir 0770, "$::kohalogdir";
if ($result==0) {
! my @dirs = split(m#/#, $::kohalogdir);
my $checkdir='';
foreach (@dirs) {
***************
*** 456,485 ****
}
! # SHELL SCRIPT
! print "Modifying Z39.50 daemon wrapper script...\n";
! $newfile='';
! open (S, "$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh");
! while (<S>) {
! if (/^KohaModuleDir=/) {
! $newfile.="KohaModuleDir=$intranetdir/modules\n";
! } elsif (/^KohaZ3950Dir=/) {
! $newfile.="KohaZ3950Dir=$intranetdir/scripts/z3950daemon\n";
! } elsif (/^LogDir=/) {
! $newfile.="LogDir=$kohalogdir\n";
! } else {
! $newfile.=$_;
! }
! }
! close S;
!
! system("mv $intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh
$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh.orig");
! open S, ">$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh";
! print S $newfile;
! close S;
! chmod 0750, "$intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh";
! chmod 0750, "$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh";
! chmod 0750, "$intranetdir/scripts/z3950daemon/processz3950queue";
! chown(0, (getpwnam($httpduser)) [3],
"$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh") or warn "can't chown
$intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh: $!";
! chown(0, (getpwnam($httpduser)) [3],
"$intranetdir/scripts/z3950daemon/processz3950queue") or warn "can't chown
$intranetdir/scripts/z3950daemon/processz3950queue: $!";
--- 375,383 ----
}
! chmod 0750, "$::intranetdir/scripts/z3950daemon/z3950-daemon-launch.sh";
! chmod 0750, "$::intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh";
! chmod 0750, "$::intranetdir/scripts/z3950daemon/processz3950queue";
! chown(0, (getpwnam($httpduser)) [3],
"$::intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh") or warn "can't
chown $::intranetdir/scripts/z3950daemon/z3950-daemon-shell.sh: $!";
! chown(0, (getpwnam($httpduser)) [3],
"$::intranetdir/scripts/z3950daemon/processz3950queue") or warn "can't chown
$::intranetdir/scripts/z3950daemon/processz3950queue: $!";
***************
*** 489,493 ****
while (<KC>) {
if (/^\s*includes\s*=/) {
! $kccontents.="includes=$intranetdir/htdocs/includes\n";
$kc->{'includes'}=1;
} elsif (/^\s*httpduser\s*=/) {
--- 387,391 ----
while (<KC>) {
if (/^\s*includes\s*=/) {
! $kccontents.="includes=$::intranetdir/htdocs/includes\n";
$kc->{'includes'}=1;
} elsif (/^\s*httpduser\s*=/) {
***************
*** 495,508 ****
$kc->{'httpduser'}=1;
} elsif (/^\s*kohaversion\s*=/) {
! $kccontents.="kohaversion=$newversion\n";
$kc->{'kohaversion'}=1;
} elsif (/^\s*kohalogdir\s*=/) {
! $kccontents.="kohalogdir=$kohalogdir\n";
$kc->{'kohalogdir'}=1;
} elsif (/^\s*intranetdir\s*=/) {
! $kccontents.="intranetdir=$intranetdir\n";
$kc->{'intranetdir'}=1;
} elsif (/^\s*opacdir\s*=/) {
! $kccontents.="opacdir=$opacdir\n";
$kc->{'opacdir'}=1;
} else {
--- 393,406 ----
$kc->{'httpduser'}=1;
} elsif (/^\s*kohaversion\s*=/) {
! $kccontents.="kohaversion=$::newversion\n";
$kc->{'kohaversion'}=1;
} elsif (/^\s*kohalogdir\s*=/) {
! $kccontents.="kohalogdir=$::kohalogdir\n";
$kc->{'kohalogdir'}=1;
} elsif (/^\s*intranetdir\s*=/) {
! $kccontents.="intranetdir=$::intranetdir\n";
$kc->{'intranetdir'}=1;
} elsif (/^\s*opacdir\s*=/) {
! $kccontents.="opacdir=$::opacdir\n";
$kc->{'opacdir'}=1;
} else {
***************
*** 512,519 ****
unless (defined($kc->{'kohaversion'})) {
! $kccontents.="kohaversion=$newversion\n";
}
unless (defined($kc->{'includes'})) {
! $kccontents.="includes=$intranetdir/htdocs/includes\n";
}
unless (defined($kc->{'httpduser'})) {
--- 410,417 ----
unless (defined($kc->{'kohaversion'})) {
! $kccontents.="kohaversion=$::newversion\n";
}
unless (defined($kc->{'includes'})) {
! $kccontents.="includes=$::intranetdir/htdocs/includes\n";
}
unless (defined($kc->{'httpduser'})) {
***************
*** 521,531 ****
}
unless (defined($kc->{'intranetdir'})) {
! $kccontents.="intranetdir=$intranetdir\n";
}
unless (defined($kc->{'opacdir'})) {
! $kccontents.="opacdir=$opacdir\n";
}
unless (defined($kc->{'kohalogdir'})) {
! $kccontents.="kohalogdir=$kohalogdir\n";
}
--- 419,429 ----
}
unless (defined($kc->{'intranetdir'})) {
! $kccontents.="intranetdir=$::intranetdir\n";
}
unless (defined($kc->{'opacdir'})) {
! $kccontents.="opacdir=$::opacdir\n";
}
unless (defined($kc->{'kohalogdir'})) {
! $kccontents.="kohalogdir=$::kohalogdir\n";
}
***************
*** 543,547 ****
==================
|;
! system ("perl -I $intranetdir/modules scripts/updater/updatedatabase");
--- 441,464 ----
==================
|;
! system ("perl -I $::intranetdir/modules scripts/updater/updatedatabase");
!
!
! print qq|
!
! ==================
! = Authentication =
! ==================
!
! This release of Koha has a new authentication module. If you are not already
! using basic authentication on your intranet, you will be required to log in to
! access some of the features of the intranet. You can log in using the userid
! and password from the /etc/koha.conf configuration file at any time. Use the
! "Members" module to add passwords for other accounts and set their
permissions.
!
! [NOTE PERMISSIONS ARE NOT COMPLETED AS OF 1.2.3RC1. Do not give passwords to
! any patrons unless you want them to have full access to your intranet.]
! |;
! print "Press the <ENTER> key to continue: ";
! <STDIN>;
***************
*** 557,568 ****
In your INTRANET VirtualHost section you should have:
! DocumentRoot $intranetdir/htdocs
! ScriptAlias /cgi-bin/koha/ $intranetdir/cgi-bin/
! SetEnv PERL5LIB $intranetdir/modules
In the OPAC VirtualHost section you should have:
! DocumentRoot $opacdir/htdocs
! ScriptAlias /cgi-bin/koha/ $opacdir/cgi-bin/
! SetEnv PERL5LIB $intranetdir/modules
You may also need to uncomment a "LoadModules env_module ... " line and
restart
--- 474,485 ----
In your INTRANET VirtualHost section you should have:
! DocumentRoot $::intranetdir/htdocs
! ScriptAlias /cgi-bin/koha/ $::intranetdir/cgi-bin/
! SetEnv PERL5LIB $::intranetdir/modules
In the OPAC VirtualHost section you should have:
! DocumentRoot $::opacdir/htdocs
! ScriptAlias /cgi-bin/koha/ $::opacdir/cgi-bin/
! SetEnv PERL5LIB $::intranetdir/modules
You may also need to uncomment a "LoadModules env_module ... " line and
restart
***************
*** 571,572 ****
--- 488,495 ----
Please report any problems you encounter through http://bugs.koha.org/
|;
+
+
+ my $reply=showmessage('Would you like to complete a survey about your
library?', 'yn', 'y');
+ if ($reply=~/y/i) {
+ system("perl kohareporter");
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] CVS: koha/misc Install.pm,NONE,1.1 installer.pl,1.4,1.5 koha.upgrade,1.1,1.2,
Steve Tonnesen <=
- Prev by Date:
[Koha-cvs] CVS: koha/C4 Biblio.pm,1.29,1.30
- Next by Date:
[Koha-cvs] CVS: koha boraccount.pl,1.5,1.6 jmemberentry.pl,1.5,1.6 mancredit.pl,1.6,1.7 maninvoice.pl,1.4,1.5 memberentry.pl,1.16,1.17 member.pl,1.7,1.8 members-home.pl,1.2,1.3 moremember.pl,1.21,1.22 readingrec.pl,1.4,1.5 reports-home.pl,1.2,1.3
- Previous by thread:
[Koha-cvs] CVS: koha/C4 Biblio.pm,1.29,1.30
- Next by thread:
[Koha-cvs] CVS: koha boraccount.pl,1.5,1.6 jmemberentry.pl,1.5,1.6 mancredit.pl,1.6,1.7 maninvoice.pl,1.4,1.5 memberentry.pl,1.16,1.17 member.pl,1.7,1.8 members-home.pl,1.2,1.3 moremember.pl,1.21,1.22 readingrec.pl,1.4,1.5 reports-home.pl,1.2,1.3
- Index(es):