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

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
2use strict;
3use FindBin qw($Bin);
4use lib $Bin;
5use onserver;
6
7setup();
8
9print "\nPlease decide upon a title for your wiki and enter it below.\n";
10print "Desired title: ";
11my $title=<STDIN>;
12chomp($title);
13
14my $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});
29unless ($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.