Last change
on this file since 1215 was
476,
checked in by andersk, 17 years ago
|
Add $email variable.
|
-
Property svn:executable set to
*
|
File size:
706 bytes
|
Line | |
---|
1 | #!/usr/bin/perl |
---|
2 | use strict; |
---|
3 | use lib '/mit/scripts/deploy/bin'; |
---|
4 | use onserver; |
---|
5 | |
---|
6 | setup(); |
---|
7 | |
---|
8 | undef $/; |
---|
9 | |
---|
10 | open(FILE, "admin/contemp.php"); |
---|
11 | my $a = <FILE>; |
---|
12 | close(FILE); |
---|
13 | $a =~ s/localhost/$sqlhost/g; |
---|
14 | $a =~ s/dbuser/$sqluser/g; |
---|
15 | $a =~ s/dbpass/$sqlpass/g; |
---|
16 | $a =~ s/guestbookdb/$sqldb/g; |
---|
17 | $a =~ s/useremail/$email/g; |
---|
18 | open(FILE, ">admin/config.inc.php"); |
---|
19 | print FILE $a; |
---|
20 | close(FILE); |
---|
21 | |
---|
22 | open(FILE, "instemp.php"); |
---|
23 | $a = <FILE>; |
---|
24 | close(FILE); |
---|
25 | $a =~ s/gbuser/$admin_username/g; |
---|
26 | $a =~ s/gbpass/$admin_password/g; |
---|
27 | open(FILE, ">install.php"); |
---|
28 | print FILE $a; |
---|
29 | close(FILE); |
---|
30 | |
---|
31 | fetch_uri( |
---|
32 | 'install.php', |
---|
33 | {}, |
---|
34 | {action => 'Create table', |
---|
35 | db => $sqldb, |
---|
36 | host => $sqlhost, |
---|
37 | name => $sqluser, |
---|
38 | pass => $sqlpass}); |
---|
Note: See
TracBrowser
for help on using the repository browser.