source: locker/deploy/bin/mediawiki @ 468

Last change on this file since 468 was 465, checked in by andersk, 17 years ago
Sync svn with locker.
  • Property svn:executable set to *
File size: 750 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use lib '/mit/scripts/deploy/bin';
4use onserver;
5
6setup();
7
8`cp skins/common/images/mediawiki.png skins/common/images/wiki.png`;
9
10print "\nPlease decide upon a title for your wiki and enter it below.\n";
11print "Desired title: ";
12my $title=<STDIN>;
13chomp($title);
14totmp("-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`;
17`cp config/LocalSettings.php .`;
18`rm -rf contrib`;
Note: See TracBrowser for help on using the repository browser.