koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] CVS: koha installer.pl,1.2.2.56,1.2.2.56.2.1


From: Steve Tonnesen
Subject: [Koha-cvs] CVS: koha installer.pl,1.2.2.56,1.2.2.56.2.1
Date: Mon, 15 Jul 2002 13:06:24 -0700

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

Modified Files:
      Tag: koha-1_2_2
        installer.pl 
Log Message:
Checks if it found an apache config file or not.


Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/installer.pl,v
retrieving revision 1.2.2.56
retrieving revision 1.2.2.56.2.1
diff -C2 -r1.2.2.56 -r1.2.2.56.2.1
*** installer.pl        9 Jul 2002 20:16:41 -0000       1.2.2.56
--- installer.pl        15 Jul 2002 20:06:21 -0000      1.2.2.56.2.1
***************
*** 331,334 ****
--- 331,359 ----
     }
  }
+ unless ($realhttpdconf) {
+     print qq|
+ 
+ I was not able to find your apache configuration file.  It is usually
+ called httpd.conf or apache.conf.
+ |;
+     print "Where is your Apache configuratin file? ";
+     chomp($input = <STDIN>);
+ 
+     if ($input) {
+       $realhttpdconf = $input;
+     } else {
+       $realhttpdconf='';
+     }
+     if ( -f $realhttpdconf ) {
+       open (HTTPDCONF, $realhttpdconf) or warn "Insufficient privileges to 
open $realhttpdconf for reading.\n";
+       while (<HTTPDCONF>) {
+           if (/^\s*User\s+"?([-\w]+)"?\s*$/) {
+               $httpduser = $1;
+           }
+       }
+       close(HTTPDCONF);
+     }
+ }
+ 
  unless ($httpduser) {
      print qq|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]