Last change
on this file since 1215 was
1215,
checked in by ezyang, 15 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 |
---|
2 | use strict; |
---|
3 | use lib '/mit/scripts/deploy/bin'; |
---|
4 | use onserver; |
---|
5 | |
---|
6 | setup(); |
---|
7 | |
---|
8 | print "\nPlease decide upon a title for your wiki and enter it below.\n"; |
---|
9 | print "Desired title: "; |
---|
10 | my $title=<STDIN>; |
---|
11 | chomp($title); |
---|
12 | |
---|
13 | my $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}); |
---|
28 | unless ($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.