Last change
on this file since 431 was
127,
checked in by jbarnold, 18 years ago
|
old copies of locker software
|
-
Property svn:executable set to
*
|
File size:
722 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/$human\@mit.edu/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 | totmp("-d \"action=Create%20table&db=$sqldbcurl&host=$sqlhost&name=$sqluser&pass=$sqlpass\""); |
---|
32 | `curl -K $tmp http://$server/~$USER/$addrend/install.php 2>/dev/null`; |
---|
Note: See
TracBrowser
for help on using the repository browser.