|
Last change
on this file since 2565 was
1222,
checked in by ezyang, 16 years ago
|
|
Fix incorrect including of production onserver.pm when scriptsdev=dev is used.
|
-
Property svn:executable set to
*
|
|
File size:
1009 bytes
|
| Rev | Line | |
|---|
| [127] | 1 | #!/usr/bin/perl |
|---|
| 2 | use strict; |
|---|
| [1222] | 3 | use FindBin qw($Bin); |
|---|
| 4 | use lib $Bin; |
|---|
| [127] | 5 | use onserver; |
|---|
| 6 | |
|---|
| 7 | setup(); |
|---|
| 8 | |
|---|
| [1217] | 9 | `cp skins/common/images/mediawiki.png skins/common/images/wiki.png`; |
|---|
| 10 | `patch -s -p1 < /mit/scripts/deploy/mediawiki.patch`; |
|---|
| 11 | |
|---|
| [127] | 12 | print "\nPlease decide upon a title for your wiki and enter it below.\n"; |
|---|
| 13 | print "Desired title: "; |
|---|
| 14 | my $title=<STDIN>; |
|---|
| 15 | chomp($title); |
|---|
| [470] | 16 | |
|---|
| 17 | my $html = fetch_uri( |
|---|
| 18 | 'config/index.php', |
|---|
| 19 | {}, |
|---|
| 20 | {Sitename => $title, |
|---|
| [476] | 21 | EmergencyContact => $email, |
|---|
| [470] | 22 | LanguageCode => 'en', |
|---|
| 23 | DBserver => $sqlhost, |
|---|
| 24 | DBname => $sqldb, |
|---|
| 25 | DBuser => $sqluser, |
|---|
| 26 | DBpassword => $sqlpass, |
|---|
| 27 | DBpassword2 => $sqlpass, |
|---|
| [476] | 28 | defaultEmail => $email, |
|---|
| [470] | 29 | SysopName => $admin_username, |
|---|
| 30 | SysopPass => $admin_password, |
|---|
| 31 | SysopPass2 => $admin_password}); |
|---|
| 32 | unless ($html =~ /Installation successful/) { |
|---|
| 33 | print STDERR "ERROR: Automatic MediaWiki configuration failed. You will need to configure\nyour MediaWiki manually, or email scripts\@mit.edu for help.\n"; |
|---|
| 34 | exit; |
|---|
| 35 | } |
|---|
| [127] | 36 | `cp config/LocalSettings.php .`; |
|---|
Note: See
TracBrowser
for help on using the repository browser.