Last change
on this file since 240 was
127,
checked in by jbarnold, 18 years ago
|
old copies of locker software
|
-
Property svn:executable set to
*
|
File size:
928 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 | open(FILE, "include/contemp.php"); |
---|
10 | my $a = <FILE>; |
---|
11 | close(FILE); |
---|
12 | $a =~ s/localhost/$sqlhost/g; |
---|
13 | $a =~ s/dbuser/$sqluser/g; |
---|
14 | $a =~ s/dbpass/$sqlpass/g; |
---|
15 | $a =~ s/polldb/$sqldb/g; |
---|
16 | open(FILE, ">include/config.inc.php"); |
---|
17 | print FILE $a; |
---|
18 | close(FILE); |
---|
19 | |
---|
20 | `curl http://$server/~$USER/$addrend/install.php\?action=step_2 2>/dev/null`; |
---|
21 | `curl http://$server/~$USER/$addrend/install.php\?action=step_3 2>/dev/null`; |
---|
22 | `curl http://$server/~$USER/$addrend/install.php\?action=step_4 2>/dev/null`; |
---|
23 | |
---|
24 | totmp("-d \"action=step_6&username=$admin_username&password=$admin_password\""); |
---|
25 | `curl -K $tmp http://$server/~$USER/$addrend/install.php\?action=step_6 2>/dev/null`; |
---|
26 | |
---|
27 | `rm -r include/contemp.php`; |
---|
28 | |
---|
29 | print <<END; |
---|
30 | Your $sname Admin Panel is at |
---|
31 | http://$server/~$USER/$addrend/admin |
---|
32 | You can use this admin panel to create your first poll. |
---|
33 | END |
---|
34 | press_enter(); |
---|
Note: See
TracBrowser
for help on using the repository browser.