version 1.1, 2003/12/04 21:58:35
|
version 1.6, 2004/10/18 19:05:34
|
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) {
|
©_httpd_conf(); |
©_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 333 END
|
Line 334 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 399 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 409 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 |