Last change
on this file since 872 was
474,
checked in by andersk, 17 years ago
|
File::Path for mkpath and rmtree.
|
-
Property svn:executable set to
*
|
File size:
823 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 | fetch_uri('install.php', {action => 'step_2'}); |
---|
21 | fetch_uri('install.php', {action => 'step_3'}); |
---|
22 | fetch_uri('install.php', {action => 'step_4'}); |
---|
23 | |
---|
24 | fetch_uri( |
---|
25 | 'install.php', |
---|
26 | {action => 'step_6'}, |
---|
27 | {action => 'step_6', |
---|
28 | username => $admin_username, |
---|
29 | password => $admin_password}); |
---|
30 | |
---|
31 | unlink('include/contemp.php'); |
---|
32 | |
---|
33 | print <<END; |
---|
34 | Your $sname Admin Panel is at |
---|
35 | http://$server/~$USER/$addrend/admin |
---|
36 | You can use this admin panel to create your first poll. |
---|
37 | END |
---|
38 | press_enter(); |
---|
Note: See
TracBrowser
for help on using the repository browser.