[Rt-commit] r11130 - rt/branches/3.8-TESTING/sbin

ruz at bestpractical.com ruz at bestpractical.com
Wed Mar 19 22:46:09 EDT 2008


Author: ruz
Date: Wed Mar 19 22:46:09 2008
New Revision: 11130

Modified:
   rt/branches/3.8-TESTING/sbin/rt-setup-database.in

Log:
* simplify script

Modified: rt/branches/3.8-TESTING/sbin/rt-setup-database.in
==============================================================================
--- rt/branches/3.8-TESTING/sbin/rt-setup-database.in	(original)
+++ rt/branches/3.8-TESTING/sbin/rt-setup-database.in	Wed Mar 19 22:46:09 2008
@@ -176,21 +176,15 @@
         my $dbh = get_admin_dbh();
         check_db_compatibility( $dbh );
 
-        $RT::Handle = new RT::Handle;
-        $RT::Handle->dbh( $dbh );
-
         print "Now populating database schema.\n";
-        ($status, $msg) = $RT::Handle->InsertSchema( $dbh, $args{'datafile'} || $args{'datadir'} );
+        ($status, $msg) = RT::Handle->InsertSchema( $dbh, $args{'datafile'} || $args{'datadir'} );
     }
     elsif ( $action eq 'acl' ) {
         my $dbh = get_admin_dbh();
         check_db_compatibility( $dbh );
 
-        $RT::Handle = new RT::Handle;
-        $RT::Handle->dbh( $dbh );
-
         print "Now inserting database ACLs\n";
-        ($status, $msg) = $RT::Handle->InsertACL( $dbh, $args{'datafile'} || $args{'datadir'} );
+        ($status, $msg) = RT::Handle->InsertACL( $dbh, $args{'datafile'} || $args{'datadir'} );
     }
     elsif ( $action eq 'coredata' ) {
         $RT::Handle = new RT::Handle;


More information about the Rt-commit mailing list