[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gforge-commits] gforge/deb-specific db-upgrade.pl, 1.52, 1.53 gforge-co
From: |
cbayle |
Subject: |
[Gforge-commits] gforge/deb-specific db-upgrade.pl, 1.52, 1.53 gforge-config, 1.5, 1.6 |
Date: |
Sun, 09 May 2004 13:15:40 -0500 |
Update of /cvsroot/gforge/gforge/deb-specific
In directory db.perdue.net:/tmp/cvs-serv13096/deb-specific
Modified Files:
db-upgrade.pl gforge-config
Log Message:
OO rewrite of system interaction
Index: db-upgrade.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/db-upgrade.pl,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- db-upgrade.pl 18 Apr 2004 12:55:02 -0000 1.52
+++ db-upgrade.pl 9 May 2004 18:15:37 -0000 1.53
@@ -1515,6 +1515,26 @@
$dbh->commit () ;
}
+ $version = &get_db_version ;
+ $target = "3.3.0-0+3" ;
+ if (is_lesser $version, $target) {
+ debug "Upgrading with 20040507.sql" ;
+
+ @reqlist = @{ &parse_sql_file ("/usr/lib/gforge/db/20040507.sql") } ;
+ foreach my $s (@reqlist) {
+ $query = $s ;
+ # debug $query ;
+ $sth = $dbh->prepare ($query) ;
+ $sth->execute () ;
+ $sth->finish () ;
+ }
+ @reqlist = () ;
+
+ &update_db_version ($target) ;
+ debug "Committing." ;
+ $dbh->commit () ;
+ }
+
debug "It seems your database $action went well and smoothly. That's
cool." ;
debug "Please enjoy using Gforge." ;
Index: gforge-config
===================================================================
RCS file: /cvsroot/gforge/gforge/deb-specific/gforge-config,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- gforge-config 4 Mar 2004 23:53:05 -0000 1.5
+++ gforge-config 9 May 2004 18:15:38 -0000 1.6
@@ -12,7 +12,7 @@
# /etc/gforge/templates/${i}.template \
# /etc/gforge/$i
#done
-/usr/lib/gforge/bin/setup -fhs -noapache -dovhost
+/usr/lib/gforge/bin/setup -fhs -noapache -dovhost -system LDAP
[ -f /etc/gforge/local.inc ] && chmod 644 /etc/gforge/local.inc
[ -f /etc/gforge/httpd.conf ] && chmod 644 /etc/gforge/httpd.conf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gforge-commits] gforge/deb-specific db-upgrade.pl, 1.52, 1.53 gforge-config, 1.5, 1.6,
cbayle <=