--- doc/install/redhat7.3/install.pl 2002/07/02 13:46:15 1.4 +++ doc/install/redhat7.3/install.pl 2002/11/16 00:57:29 1.11 @@ -2,7 +2,7 @@ # The LearningOnline Network # Red Hat 7.3 installation script # -# $Id: install.pl,v 1.4 2002/07/02 13:46:15 matthew Exp $ +# $Id: install.pl,v 1.11 2002/11/16 00:57:29 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -208,7 +208,7 @@ my @mysql_rpms = ( my @misc_rpms = ( "$instdir/hwcrypto-1.0-3.i386.rpm", # already installed "$instdir/m2crypto-0.05_snap4-2.i386.rpm", # okay w/o f,nd - "$instdir/netatalk-1.5pre6-1rh7.i386.rpm" # hmmmm + "$instdir/tetex-dvips-1.0.7-47.i386.rpm" ); ## ## Okay, I have tried being nice about this and not doing '--force --nodeps', @@ -364,7 +364,8 @@ print MYSQL <<"ENDMYSQL"; CREATE DATABASE loncapa; INSERT INTO user (Host, User, Password) VALUES ('localhost','www',password('localhostkey')); -GRANT ALL PRIVILEGES ON *.* 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,23 +426,23 @@ print_and_log("\n"); ## ## Retrieve loncapa.tar.gz ## -if (! -e "$instdir/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/current/loncapa.tar.gz 2>/dev/null 1>/dev/null"); - if (! -e "./loncapa.tar.gz") { + system("wget http://install.loncapa.org/versions/loncapa-current.tar.gz 2>/dev/null 1>/dev/null"); + if (! -e "./loncapa-current.tar.gz") { die("Unable to retrieve LON-CAPA source files from\n". - "http://install.loncapa.org/versions/current/loncapa.tar.gz\n"); + "http://install.loncapa.org/versions/loncapa-current.tar.gz\n"); } print_and_log("\n"); } else { print_and_log(<<"END"); ------------------------------------------------------------------------ -You seem to have a version of loncapa.tar.gz in $instdir. +You seem to have a version of loncapa-current.tar.gz in $instdir. This copy will be used and a new version will NOT be downloaded. If you wish, you may download a new version by executing: -wget http://install.loncapa.org/versions/current/loncapa.tar.gz +wget http://install.loncapa.org/versions/loncapa-current.tar.gz ------------------------------------------------------------------------ END @@ -451,7 +452,7 @@ END ## untar loncapa.tar.gz ## print_and_log("Extracting LON-CAPA source files\n"); -writelog(`cd ~root; tar zxf $instdir/loncapa.tar.gz`); +writelog(`cd ~root; tar zxf $instdir/loncapa-current.tar.gz`); print_and_log("\n"); my $version = `cat /etc/redhat-release`; @@ -462,7 +463,7 @@ commands now: rpm -Uvh perl-5.6.1-34.99.6.i386.rpm rpm -Uvh perl-CGI-2.752-34.99.6.i386.rpm -cd /root/loncapa +cd /root/loncapa-N.N (N.N should correspond to a version number like '0.4') ./UPDATE END @@ -474,11 +475,11 @@ END All of the extra files seem to have been installed correctly. It remains for you to execute the following commands: -cd /root/loncapa; +cd /root/loncapa-N.N (N.N should correspond to a version number like '0.4') ./UPDATE -If you have any trouble, please see http://install.loncapa.org and -http://help.loncapa.org. +If you have any trouble, please see http://install.loncapa.org/ and +http://help.loncapa.org/. ENDMSG }