source: branches/locker-dev/locker/deploy/bin/mediawiki @ 1418

Last change on this file since 1418 was 1418, checked in by ezyang, 14 years ago
Synchronize MediaWiki code (it's actually dead now).
  • Property svn:executable set to *
File size: 1009 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use FindBin qw($Bin);
4use lib $Bin;
5use onserver;
6
7`cp skins/common/images/mediawiki.png skins/common/images/wiki.png`;
8`patch -s -p1 < /mit/scripts/deploy/mediawiki.patch`;
9setup();
10
11print "\nPlease decide upon a title for your wiki and enter it below.\n";
12print "Desired title: ";
13
14my $title=<STDIN>;
15chomp($title);
16
17my $html = fetch_uri(
18    'config/index.php',
19    {},
20    {Sitename => $title,
21     EmergencyContact => $email,
22     LanguageCode => 'en',
23     DBserver => $sqlhost,
24     DBname => $sqldb,
25     DBuser => $sqluser,
26     DBpassword => $sqlpass,
27     DBpassword2 => $sqlpass,
28     defaultEmail => $email,
29     SysopName => $admin_username,
30     SysopPass => $admin_password,
31     SysopPass2 => $admin_password});
32unless ($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}
36`cp config/LocalSettings.php .`;
Note: See TracBrowser for help on using the repository browser.