source: trunk/locker/deploy/bin/mediawiki @ 1215

Last change on this file since 1215 was 1215, checked in by ezyang, 13 years ago
Implement enhanced logic for Git-style installs; namely, removing patching facilities that are built into Git and generating an empty commit when performing the install to subsume .scripts-version.
  • Property svn:executable set to *
File size: 884 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use lib '/mit/scripts/deploy/bin';
4use onserver;
5
6setup();
7
8print "\nPlease decide upon a title for your wiki and enter it below.\n";
9print "Desired title: ";
10my $title=<STDIN>;
11chomp($title);
12
13my $html = fetch_uri(
14    'config/index.php',
15    {},
16    {Sitename => $title,
17     EmergencyContact => $email,
18     LanguageCode => 'en',
19     DBserver => $sqlhost,
20     DBname => $sqldb,
21     DBuser => $sqluser,
22     DBpassword => $sqlpass,
23     DBpassword2 => $sqlpass,
24     defaultEmail => $email,
25     SysopName => $admin_username,
26     SysopPass => $admin_password,
27     SysopPass2 => $admin_password});
28unless ($html =~ /Installation successful/) {
29    print STDERR "ERROR: Automatic MediaWiki configuration failed.  You will need to configure\nyour MediaWiki manually, or email scripts\@mit.edu for help.\n";
30    exit;
31}
32`cp config/LocalSettings.php .`;
Note: See TracBrowser for help on using the repository browser.