Changeset 725


Ignore:
Timestamp:
Apr 9, 2008, 11:44:14 PM (14 years ago)
Author:
price
Message:
make WordPress compatible with $USER.scripts URIs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/wordpress

    r476 r725  
    33use lib '/mit/scripts/deploy/bin';
    44use onserver;
     5use DBI;
    56
    67setup();
     
    2930}
    3031
     32my $dbh = DBI->connect("dbi:mysql:database=$sqldb;host=$sqlhost", $sqluser, $sqlpass);
     33$dbh->do("update wp_options set option_value = ? where option_name = 'siteurl'",
     34         {}, "/~$USER/$addrend");
     35$dbh->do("update wp_options set option_value = ? where option_name = 'home'",
     36         {}, "http://$USER.$server/$addrend");
     37$dbh->disconnect;
     38
    3139print_login_info();
    3240print "You will also receive this login information at your MIT email address.\n";
Note: See TracChangeset for help on using the changeset viewer.