source: locker/deploy/bin/advancedbook @ 240

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: 722 bytes
Line 
1#!/usr/bin/perl
2use strict;
3use lib '/mit/scripts/deploy/bin';
4use onserver;
5
6setup();
7
8undef $/;
9
10open(FILE, "admin/contemp.php");
11my $a = <FILE>;
12close(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;
18open(FILE, ">admin/config.inc.php");
19print FILE $a;
20close(FILE);
21
22open(FILE, "instemp.php");
23$a = <FILE>;
24close(FILE);
25$a =~ s/gbuser/$admin_username/g;
26$a =~ s/gbpass/$admin_password/g;
27open(FILE, ">install.php");
28print FILE $a;
29close(FILE);
30
31totmp("-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.