Changeset 470 for locker


Ignore:
Timestamp:
Oct 14, 2007, 1:16:06 AM (17 years ago)
Author:
andersk
Message:
Uncurl mediawiki.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/mediawiki

    r465 r470  
    77
    88`cp skins/common/images/mediawiki.png skins/common/images/wiki.png`;
     9`patch -s -p1 < /mit/scripts/deploy/mediawiki.patch`;
    910
    1011print "\nPlease decide upon a title for your wiki and enter it below.\n";
     
    1213my $title=<STDIN>;
    1314chomp($title);
    14 totmp("-d \"Sitename=$title&EmergencyContact=$USER\@mit.edu&LanguageCode=en&DBserver=$sqlhost&DBname=$sqldbcurl&DBuser=$sqluser&DBpassword=$sqlpass&DBpassword2=$sqlpass&defaultEmail=$USER\@mit.edu&SysopName=$admin_username&SysopPass=$admin_password&SysopPass2=$admin_password\"");
    15 `curl -K $tmp http://$server/~$USER/$addrend/config/index.php`;
    16 `patch -p1 < /mit/scripts/deploy/mediawiki.patch >/dev/null`;
     15
     16my $html = fetch_uri(
     17    'config/index.php',
     18    {},
     19    {Sitename => $title,
     20     EmergencyContact => "$USER\@mit.edu",
     21     LanguageCode => 'en',
     22     DBserver => $sqlhost,
     23     DBname => $sqldb,
     24     DBuser => $sqluser,
     25     DBpassword => $sqlpass,
     26     DBpassword2 => $sqlpass,
     27     defaultEmail => "$USER\@mit.edu",
     28     SysopName => $admin_username,
     29     SysopPass => $admin_password,
     30     SysopPass2 => $admin_password});
     31unless ($html =~ /Installation successful/) {
     32    print STDERR "ERROR: Automatic MediaWiki configuration failed.  You will need to configure\nyour MediaWiki manually, or email scripts\@mit.edu for help.\n";
     33    exit;
     34}
    1735`cp config/LocalSettings.php .`;
    18 `rm -rf contrib`;
Note: See TracChangeset for help on using the changeset viewer.