Last change
on this file since 1224 was
1224,
checked in by ezyang, 15 years ago
|
Convert MediaWiki autoinstaller to use new Git system.
This was originally a set of three commits that were reverted
in preparation for a merge.
|
-
Property svn:executable set to
*
|
File size:
885 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | use strict; |
---|
3 | use FindBin qw($Bin); |
---|
4 | use lib $Bin; |
---|
5 | use onserver; |
---|
6 | |
---|
7 | setup(); |
---|
8 | |
---|
9 | print "\nPlease decide upon a title for your wiki and enter it below.\n"; |
---|
10 | print "Desired title: "; |
---|
11 | my $title=<STDIN>; |
---|
12 | chomp($title); |
---|
13 | |
---|
14 | my $html = fetch_uri( |
---|
15 | 'config/index.php', |
---|
16 | {}, |
---|
17 | {Sitename => $title, |
---|
18 | EmergencyContact => $email, |
---|
19 | LanguageCode => 'en', |
---|
20 | DBserver => $sqlhost, |
---|
21 | DBname => $sqldb, |
---|
22 | DBuser => $sqluser, |
---|
23 | DBpassword => $sqlpass, |
---|
24 | DBpassword2 => $sqlpass, |
---|
25 | defaultEmail => $email, |
---|
26 | SysopName => $admin_username, |
---|
27 | SysopPass => $admin_password, |
---|
28 | SysopPass2 => $admin_password}); |
---|
29 | unless ($html =~ /Installation successful/) { |
---|
30 | print STDERR "ERROR: Automatic MediaWiki configuration failed. You will need to configure\nyour MediaWiki manually, or email scripts\@mit.edu for help.\n"; |
---|
31 | exit; |
---|
32 | } |
---|
33 | `cp config/LocalSettings.php .`; |
---|
Note: See
TracBrowser
for help on using the repository browser.