[Koha-cvs] CVS: koha installer.pl,1.2.2.6,1.2.2.7

Mike Mylonas dragon28 at users.sourceforge.net
Thu May 16 09:32:36 CEST 2002


Update of /cvsroot/koha/koha
In directory usw-pr-cvs1:/tmp/cvs-serv23440/koha

Modified Files:
      Tag: rel-1-2
	installer.pl 
Log Message:
installer now updated the apache conf file

Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/installer.pl,v
retrieving revision 1.2.2.6
retrieving revision 1.2.2.7
diff -C2 -r1.2.2.6 -r1.2.2.7
*** installer.pl	11 May 2002 05:22:22 -0000	1.2.2.6
--- installer.pl	16 May 2002 07:32:34 -0000	1.2.2.7
***************
*** 42,57 ****
  
  print "\n";
! print "Unpack the tarball - still to be done.\n";
! #
! #  Hmm, on further thought, this file came out of the tarball ... so
! #  is it likely to be untarred again?
! #
! #print "I need to unpack the Koha TarFile -- where is it?  ";
! #$answer = $_;
! #chomp $answer;    
! 
! # FIXME?  using system is probably not the best way to do this 
! # tar on solaris may not work properly, etc.
! #system("tar -x $answer"); #unpack fill out
  
  #
--- 42,46 ----
  
  print "\n";
! 
  
  #
***************
*** 75,79 ****
  # Print out a list of any missing modules
  #
- 
  if (@missing > 0) {
      print "\n\n";
--- 64,67 ----
***************
*** 214,218 ****
  close(SITES);
  
! print "Successfully created configuration file.\n";
  
  
--- 202,209 ----
  close(SITES);
  
! print "Successfully created the Koha configuration file.\n";
! 
! 
! 
  
  
***************
*** 224,235 ****
  #
  
  #SETUP opac
! #   <VirtualHost opac.your.site>                         
! #   ServerAdmin webmaster at your.site                            
! #   DocumentRoot /usr/local/www/opac/htdocs                     
! #   ServerName opac.your.site                      
! #   ErrorLog logs/opac-error_log       
! #   TransferLog logs/opac-access_log               
! #   </VirtualHost>
  
  
--- 215,291 ----
  #
  
+ #
  #SETUP opac
! #
! my $apache_conf_path;
! my $svr_admin;
! my $docu_root;
! my $svr_name;
! 
! print qq|
! Koha needs to setup your Apache configuration file for the
! OPAC virtual host.
! 
! Please enter the filename and path to your Apache Configuration file 
! usually located in \"/usr/local/apache/conf/httpd.conf\".
! |;
! do {
! 	print "Enter path:";
! 	chomp($apache_conf_path = <STDIN>);
! 	print "$conf_path is a valid file.\n" if !-f $apache_conf_path;
! } until -f $apache_conf_path;
! 
! 
! print qq|
! Please enter the servername for your OPAC.
! Usually opac.your.domain
! |;
! do {
! 	print "Enter servername address:";
! 	chomp($svr_name = <STDIN>);
! };
! 
! 
! print qq|
! Please enter the e-mail address for your webserver admin.
! Usually webmaster\@your.domain
! |;
! do {
! 	print "Enter e-mail address:";
! 	chomp($svr_admin = <STDIN>);
! };
! 
! 
! print qq|
! Please enter the full path to your OPAC\'s document root.
! usually something like \"/usr/local/www/opac/htdocs\".
! |;
! do {
! 	print "Enter Document Roots Path:";
! 	chomp($docu_root = <STDIN>);
! };
! 
! 
! #
! # Update Apache Conf File.
! #
! open(SITES,">>$apache_conf_path") or die "Couldn't write to file 
! $conf_path.  Must have write capability.\n";
! print SITES <<EOP
! 
! <VirtualHost $svr_name>
!     ServerAdmin $svr_admin
!     DocumentRoot $docu_root
!     ServerName $svr_name
!     ErrorLog logs/opac-error_log
!     TransferLog logs/opac-access_log common
! </VirtualHost>
! 
! EOP
! ;
! close(SITES);
! 
! print "Successfully updated Apache Configuration file.\n";
! 
  
  
***************
*** 242,246 ****
  
  #
! # It is competed
  #
  print "\nCongratulations ... your Koha installation is complete!\n";
--- 298,302 ----
  
  #
! # It is completed
  #
  print "\nCongratulations ... your Koha installation is complete!\n";





More information about the Koha-cvs mailing list