Diff for /doc/install/fedora/install.pl between versions 1.1 and 1.7

version 1.1, 2003/12/04 21:58:35 version 1.7, 2005/03/24 21:42:46
Line 1 Line 1
 #!/usr/bin/perl -w  #!/usr/bin/perl -w
 # The LearningOnline Network   # The LearningOnline Network 
 # Red Hat 7.3 installation script  # Fedora installation script
 #  #
 # $Id$  # $Id$
 #  #
Line 179  if ($install_httpd_conf) { Line 179  if ($install_httpd_conf) {
     &copy_httpd_conf();      &copy_httpd_conf();
 }  }
   
 my $lctarball = 'loncapa-current.tar.gz';  #my $lctarball = 'loncapa-current.tar.gz';
   my $lctarball = 'loncapa-fedora-current.tar.gz';
 if ($download_loncapa) {  if ($download_loncapa) {
     &download_loncapa($lctarball);      &download_loncapa($lctarball);
 } else {  } else {
Line 217  sub setup_www { Line 218  sub setup_www {
 ###############################################  ###############################################
 ###############################################  ###############################################
 sub uid_of_www {  sub uid_of_www {
     my $num = `grep ^www /etc/passwd | cut -d':' -f3`;      my ($num) = (getpwnam('www'))[2];
     chomp $num;  
     if (int($num) == $num) {  
  writelog ("uid of www = $num\n");  
     } else {  
  die "Unable to determine UID of user www\n  Halting.\n";  
     }  
     print_and_log("\n");  
     return $num;      return $num;
 }  }
   
Line 333  END Line 327  END
  $mysql_commands .= <<"END";   $mysql_commands .= <<"END";
 INSERT INTO user (Host, User, Password)  INSERT INTO user (Host, User, Password)
 VALUES ('localhost','www',password('localhostkey'));  VALUES ('localhost','www',password('localhostkey'));
 INSERT INTO db VALUES ('localhost','loncapa','www',  INSERT INTO db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv,Grant_priv,References_priv,Index_priv,Alter_priv) VALUES ('localhost','loncapa','www','Y','Y','Y','Y','Y','Y','N','Y','Y','Y');
 'Y','Y','Y','Y','Y','Y','N','Y','Y','Y');  
 SET PASSWORD FOR root\@localhost=PASSWORD('$rootpass');  SET PASSWORD FOR root\@localhost=PASSWORD('$rootpass');
 DELETE FROM user WHERE host<>'localhost';  DELETE FROM user WHERE host<>'localhost';
 FLUSH PRIVILEGES;  FLUSH PRIVILEGES;
Line 399  You seem to have a version of loncapa-cu Line 392  You seem to have a version of loncapa-cu
 This copy will be used and a new version will NOT be downloaded.    This copy will be used and a new version will NOT be downloaded.  
 If you wish, you may download a new version by executing:  If you wish, you may download a new version by executing:
   
 wget http://install.loncapa.org/versions/loncapa-current.tar.gz  wget http://install.loncapa.org/versions/loncapa-fedora-current.tar.gz
   
 ------------------------------------------------------------------------  ------------------------------------------------------------------------
 END  END
Line 409  END Line 402  END
     ## untar loncapa.tar.gz      ## untar loncapa.tar.gz
     ##      ##
     print_and_log("Extracting LON-CAPA source files\n");      print_and_log("Extracting LON-CAPA source files\n");
     writelog(`cd ~root; tar zxf $instdir/loncapa-current.tar.gz`);      writelog(`cd ~root; tar zxf $instdir/$lctarball`);
     print_and_log("\n");      print_and_log("\n");
     print <<"ENDMSG";      print <<"ENDMSG";
 All of the extra files seem to have been installed correctly.  It remains for   All of the extra files seem to have been installed correctly.  It remains for 

Removed from v.1.1  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>