- Timestamp:
- Oct 14, 2007, 1:16:06 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/deploy/bin/mediawiki
r465 r470 7 7 8 8 `cp skins/common/images/mediawiki.png skins/common/images/wiki.png`; 9 `patch -s -p1 < /mit/scripts/deploy/mediawiki.patch`; 9 10 10 11 print "\nPlease decide upon a title for your wiki and enter it below.\n"; … … 12 13 my $title=<STDIN>; 13 14 chomp($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 16 my $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}); 31 unless ($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 } 17 35 `cp config/LocalSettings.php .`; 18 `rm -rf contrib`;
Note: See TracChangeset
for help on using the changeset viewer.