--- doc/install/redhat7.3/install.pl 2002/11/16 00:01:29 1.10 +++ doc/install/redhat7.3/install.pl 2002/12/18 16:34:09 1.15 @@ -2,7 +2,7 @@ # The LearningOnline Network # Red Hat 7.3 installation script # -# $Id: install.pl,v 1.10 2002/11/16 00:01:29 harris41 Exp $ +# $Id: install.pl,v 1.15 2002/12/18 16:34:09 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -61,13 +61,15 @@ # perl-DBI-1.21-1.i386.rpm # mod_perl-1.26-5.i386.rpm # perl-suidperl-5.6.1-34.99.6.i386.rpm -# LON-CAPA-systemperl-3.4-rh72.i386.rpm +# LONCAPA-0.6.0-1.i386.rpm # mysql-3.23.49-3.i386.rpm # mysqlclient9-3.23.22-6.i386.rpm # mysql-server-3.23.49-3.i386.rpm # hwcrypto-1.0-3.i386.rpm # m2crypto-0.05_snap4-2.i386.rpm -# netatalk-1.5pre6-1rh7.i386.rpm +# netpbm-9.24-3.i386.rpm +# netpbm-progs-9.24-3.i386.rpm +# krb5-libs-1.2.4-3.i386.rpm # Other files: # httpd.conf # mod_auth_external-2.1.13.tar.gz @@ -85,7 +87,7 @@ my $result; my $test; # note: The filehandle LOG is global. -open LOG,">/tmp/loncapa_install.log" || die "Unable to open log file.\n"; +open LOG,">loncapa_install.log" || die "Unable to open log file.\n"; # Some friendly subroutines sub die_if_nonempty { @@ -145,7 +147,7 @@ END print <<"END"; ******************************************************************** - Welcome to LON-CAPA + Welcome to LON-CAPA 0.6.0 This script will install the base software that LON-CAPA needs to run properly. @@ -198,7 +200,12 @@ my @perl_rpms = ( "$instdir/perl-suidperl-5.6.1-34.99.6.i386.rpm", ); my @loncapa_perl_rpms = ( - "$instdir/LON-CAPA-systemperl-3.4-rh72.i386.rpm" + "$instdir/LONCAPA-0.6.0-1.i386.rpm", + "$instdir/netpbm-9.24-3.i386.rpm", + "$instdir/netpbm-progs-9.24-3.i386.rpm", + "$instdir/krb5-libs-1.2.4-3.i386.rpm", + "$instdir/krb5-devel-1.2.4-3.i386.rpm", + "$instdir/LON-CAPA-krb4-3.1-1.i386.rpm", ); my @mysql_rpms = ( "$instdir/mysql-3.23.49-3.i386.rpm", # okay w/o f,nd @@ -364,7 +371,8 @@ print MYSQL <<"ENDMYSQL"; CREATE DATABASE loncapa; INSERT INTO user (Host, User, Password) VALUES ('localhost','www',password('localhostkey')); -GRANT ALL PRIVILEGES ON loncapa.* TO 'www\@localhost'; +INSERT INTO db VALUES ('localhost','loncapa','www', +'Y','Y','Y','Y','Y','Y','N','Y','Y','Y'); SET PASSWORD FOR root\@localhost=PASSWORD('$rootpass'); DELETE FROM user WHERE host<>'localhost'; FLUSH PRIVILEGES; @@ -425,12 +433,15 @@ print_and_log("\n"); ## ## Retrieve loncapa.tar.gz ## -if (! -e "$instdir/loncapa-current.tar.gz") { - print_and_log("Retrieving LON-CAPA source files from install.loncapa.org\n"); - system("wget http://install.loncapa.org/versions/loncapa-current.tar.gz 2>/dev/null 1>/dev/null"); - if (! -e "./loncapa-current.tar.gz") { +my $lctarball = 'loncapa-current.tar.gz'; +if (! -e "$instdir/$lctarball") { + print_and_log("Retrieving LON-CAPA source files from install.loncapa.org\n") +; + system("wget http://install.loncapa.org/versions/$lctarball 2>/dev/null 1>/d +ev/null"); + if (! -e "./$lctarball") { die("Unable to retrieve LON-CAPA source files from\n". - "http://install.loncapa.org/versions/loncapa-current.tar.gz\n"); + "http://install.loncapa.org/versions/$lctarball\n"); } print_and_log("\n"); } else {