[LON-CAPA-cvs] cvs: doc /install/redhat7.3 install.pl

matthew lon-capa-cvs@mail.lon-capa.org
Tue, 02 Sep 2003 19:10:52 -0000


matthew		Tue Sep  2 15:10:52 2003 EDT

  Modified files:              
    /doc/install/redhat7.3	install.pl 
  Log:
  Modified to use "rpm -Uvh --replacepkgs @packages" so it doesn't simply
  die when a package is already installed.
  
  
Index: doc/install/redhat7.3/install.pl
diff -u doc/install/redhat7.3/install.pl:1.23 doc/install/redhat7.3/install.pl:1.24
--- doc/install/redhat7.3/install.pl:1.23	Thu Aug 28 13:13:13 2003
+++ doc/install/redhat7.3/install.pl	Tue Sep  2 15:10:52 2003
@@ -2,7 +2,7 @@
 # The LearningOnline Network 
 # Red Hat 7.3 installation script
 #
-# $Id: install.pl,v 1.23 2003/08/28 17:13:13 matthew Exp $
+# $Id: install.pl,v 1.24 2003/09/02 19:10:52 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -89,7 +89,7 @@
 # note: The filehandle LOG is global.
 open LOG,">loncapa_install.log" || die "Unable to open log file.\n";
 
-print LOG '$Id: install.pl,v 1.23 2003/08/28 17:13:13 matthew Exp $'."\n";
+print LOG '$Id: install.pl,v 1.24 2003/09/02 19:10:52 matthew Exp $'."\n";
 
 # Some friendly subroutines
 sub die_if_nonempty {
@@ -232,25 +232,27 @@
 ## this is not a nice thing to do and we should be careful about it.
 ##
 
+
+
 &print_and_log("Installing Apache packages.\n");
-&writelog (`rpm -Uvh @apache_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @apache_rpms`);
 &print_and_log("Installing openssh packages.\n");
-&writelog (`rpm -Uvh @openssh_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @openssh_rpms`);
 &writelog(`/etc/init.d/sshd start`);
 &print_and_log("Installing ImageMagick packages.\n");
-&writelog (`rpm -Uvh @ImageMagick_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @ImageMagick_rpms`);
 &print_and_log("Installing mysql packages.\n");
-&writelog (`rpm -Uvh @mysql_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @mysql_rpms`);
 &print_and_log("Installing Perl packages.\n");
-&writelog (`rpm -Uvh @perl_rpms`);
+&writelog (`rpm -Uvh --replacepkgs@perl_rpms`);
 &print_and_log("Installing legacy readline package (required for gnuplot).");
 &writelog(`rpm -i --oldpackage @old_readline_rpms`);
 &print_and_log("Installing gnuplot packages.\n");
 &writelog (`rpm -ivh --force --nodeps @gnuplot_rpms`);
 &print_and_log("Installing LON-CAPA Perl packages.\n");
-&writelog (`rpm -Uvh @loncapa_perl_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @loncapa_perl_rpms`);
 &print_and_log("Installing misc packages.\n");
-&writelog (`rpm -Uvh @misc_rpms`);
+&writelog (`rpm -Uvh --replacepkgs @misc_rpms`);
 &print_and_log("Installing LON-CAPA systemperl rpm");
 &writelog(`rpm -ivh --force --nodeps $systemperl`);
 &print_and_log("\n");