source: locker/deploy/bin/advancedpoll @ 184

Last change on this file since 184 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
2use strict;
3use lib '/mit/scripts/deploy/bin';
4use onserver;
5
6setup();
7
8undef $/;
9open(FILE, "include/contemp.php");
10my $a = <FILE>;
11close(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;
16open(FILE, ">include/config.inc.php");
17print FILE $a;
18close(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
24totmp("-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
29print <<END;
30Your $sname Admin Panel is at
31http://$server/~$USER/$addrend/admin
32You can use this admin panel to create your first poll.
33END
34press_enter();
Note: See TracBrowser for help on using the repository browser.