|
Last change
on this file since 561 was
476,
checked in by andersk, 18 years ago
|
|
Add $email variable.
|
-
Property svn:executable set to
*
|
|
File size:
715 bytes
|
| Rev | Line | |
|---|
| [127] | 1 | #!/usr/bin/perl |
|---|
| 2 | use strict; |
|---|
| [469] | 3 | use lib '/mit/scripts/deploy/bin'; |
|---|
| [127] | 4 | use onserver; |
|---|
| 5 | |
|---|
| 6 | setup(); |
|---|
| 7 | |
|---|
| [468] | 8 | fetch_uri( |
|---|
| 9 | 'wp-admin/setup-config.php', |
|---|
| 10 | {step => 2}, |
|---|
| 11 | {dbhost => $sqlhost, |
|---|
| 12 | uname => $sqluser, |
|---|
| 13 | dbname => $sqldb, |
|---|
| 14 | pwd => $sqlpass, |
|---|
| 15 | prefix => '', |
|---|
| 16 | submit => 'Submit', |
|---|
| 17 | step => 2}); |
|---|
| [127] | 18 | |
|---|
| [468] | 19 | my $html = fetch_uri( |
|---|
| 20 | 'wp-admin/install.php', |
|---|
| 21 | {step => 2}, |
|---|
| 22 | {weblog_title => 'My Blog', |
|---|
| [476] | 23 | admin_email => $email, |
|---|
| [468] | 24 | submit => 'Continue', |
|---|
| 25 | step => 2}); |
|---|
| 26 | while ($html =~ /<dd><code>(.*)<\/code><\/dd>/g) { |
|---|
| 27 | $admin_username = $admin_password; |
|---|
| 28 | $admin_password = $1; |
|---|
| 29 | } |
|---|
| [127] | 30 | |
|---|
| 31 | print_login_info(); |
|---|
| 32 | print "You will also receive this login information at your MIT email address.\n"; |
|---|
| 33 | press_enter(); |
|---|
Note: See
TracBrowser
for help on using the repository browser.