[Koha-cvs] CVS: koha installer.pl,1.2.2.38,1.2.2.39

Steve Tonnesen tonnesen at users.sourceforge.net
Wed Jun 26 15:29:15 CEST 2002


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

Modified Files:
      Tag: rel-1-2
	installer.pl 
Log Message:
Installer creates a backup of httpd.conf


Index: installer.pl
===================================================================
RCS file: /cvsroot/koha/koha/installer.pl,v
retrieving revision 1.2.2.38
retrieving revision 1.2.2.39
diff -C2 -r1.2.2.38 -r1.2.2.39
*** installer.pl	26 Jun 2002 05:01:16 -0000	1.2.2.38
--- installer.pl	26 Jun 2002 13:29:13 -0000	1.2.2.39
***************
*** 396,401 ****
--- 396,403 ----
  }
  
+ my $apachebackupmade=0;
  if ($envmodule || $includesmodule) {
      system("mv -f $realhttpdconf $realhttpdconf\.prekoha");
+     $apachebackupmade=1;
      open HC, ">$realhttpdconf";
      print HC $httpdconf;
***************
*** 417,420 ****
--- 419,425 ----
      print "\n";
  } else {
+     unless ($apachebackupmade) {
+ 	system("cp -f $realhttpdconf $realhttpdconf\.prekoha");
+     }
      my $includesdirectives='';
      if ($includesmodule) {





More information about the Koha-cvs mailing list