[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.50,1.51
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/deb-specific db-upgrade.pl,1.50,1.51 |
Date: |
Sun, 28 Mar 2004 13:46:53 -0600 |
Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv7543/deb-specific
Modified Files:
db-upgrade.pl
Log Message:
Connect without passwd
Index: db-upgrade.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/db-upgrade.pl,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- db-upgrade.pl 26 Mar 2004 09:50:56 -0000 1.50
+++ db-upgrade.pl 28 Mar 2004 19:46:50 -0000 1.51
@@ -27,13 +27,14 @@
sub debug ( $ ) ;
sub parse_sql_file ( $ ) ;
-require ("/usr/lib/gforge/lib/include.pl") ; # Include a few predefined
functions
+require ("/etc/gforge/local.pl") ;
require ("/usr/lib/gforge/lib/sqlparser.pm") ; # Our magic SQL parser
debug "You'll see some debugging info during this installation." ;
debug "Do not worry unless told otherwise." ;
-&db_connect ;
+$dbh ||= DBI->connect("DBI:Pg:dbname=$sys_dbname");
+die "Cannot connect to database: $!" if ( ! $dbh );
# debug "Connected to the database OK." ;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/deb-specific db-upgrade.pl,1.50,1.51,
cbayle <=