[Koha-cvs] CVS: koha installer.pl,1.2.2.18,1.2.2.19

Steve Tonnesen tonnesen at users.sourceforge.net
Sat Jun 22 07:43:56 CEST 2002


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

Modified Files:
      Tag: rel-1-2
	installer.pl 
Log Message:
Check for existence of apache init script before running.


Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/installer.pl,v
retrieving revision 1.2.2.18
retrieving revision 1.2.2.19
diff -C2 -r1.2.2.18 -r1.2.2.19
*** installer.pl	22 Jun 2002 05:38:52 -0000	1.2.2.18
--- installer.pl	22 Jun 2002 05:43:53 -0000	1.2.2.19
***************
*** 482,486 ****
  if ($answer eq "Y" || $answer eq "y") {
  	# Need to support other init structures here?
! 	system('/etc/rc.d/init.d/httpd restart');
      } else {
      print qq|
--- 482,492 ----
  if ($answer eq "Y" || $answer eq "y") {
  	# Need to support other init structures here?
! 	if (-e "/etc/rc.d/init.d/httpd") {
! 	    system('/etc/rc.d/init.d/httpd restart');
! 	} elsif (-e "/etc/init.d/apache") {
! 	    system('/etc//init.d/apache restart');
! 	} elsif (-e "/etc/init.d/apache-ssl") {
! 	    system('/etc/init.d/apache-ssl restart');
! 	}
      } else {
      print qq|





More information about the Koha-cvs mailing list