[Evolvis-commits] r180: solve two problems discovered on upgrading one customer’s evolvis : ↵ • DB needs to be upgraded↵ • /etc/gforge/httpd. conf is a generated file (back it up nevertheless) ↵ ↵ thanks rmas↵
mirabilos at evolvis.org
mirabilos at evolvis.org
Mon Oct 26 15:30:57 CET 2009
Author: mirabilos
Date: 2009-10-26 14:30:56 +0000 (Mon, 26 Oct 2009)
New Revision: 180
Modified:
trunk/gforge_base/gforge-4.8/deb-specific/db-upgrade.pl
trunk/gforge_base/gforge-4.8/debian/changelog
trunk/gforge_base/gforge-4.8/debian/gforge-web-apache2.postinst.dsfh-in
Log:
solve two problems discovered on upgrading one customer’s evolvis:
• DB needs to be upgraded
• /etc/gforge/httpd.conf is a generated file (back it up nevertheless)
thanks rmas
Modified: trunk/gforge_base/gforge-4.8/deb-specific/db-upgrade.pl
===================================================================
--- trunk/gforge_base/gforge-4.8/deb-specific/db-upgrade.pl 2009-10-23 12:29:32 UTC (rev 179)
+++ trunk/gforge_base/gforge-4.8/deb-specific/db-upgrade.pl 2009-10-26 14:30:56 UTC (rev 180)
@@ -2823,6 +2823,27 @@
&update_with_sql("20090402-add-projecttags-constraints","4.7.99-1");
&update_with_sql("20090402-forum-attachment-types","4.7.99-2");
+ $version = &get_db_version ;
+ $target = "4.8-3evolvis3" ;
+ if (&is_lesser ($version, $target)) {
+ @reqlist = (
+ "ALTER TABLE users ALTER COLUMN user_pw TYPE character varying(128)",
+ ) ;
+
+ 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 () ;
+ }
+
########################### INSERT HERE #################################
&debug ("It seems your database $action went well and smoothly. That's cool.") ;
Modified: trunk/gforge_base/gforge-4.8/debian/changelog
===================================================================
--- trunk/gforge_base/gforge-4.8/debian/changelog 2009-10-23 12:29:32 UTC (rev 179)
+++ trunk/gforge_base/gforge-4.8/debian/changelog 2009-10-26 14:30:56 UTC (rev 180)
@@ -1,3 +1,14 @@
+gforge (4.8-3evolvis3) unstable; urgency=low
+
+ * Apply patch from Roland Mas for also enlarging users.user_pw
+ when upgrading existing installations
+ * Save existing /etc/gforge/httpd.conf on upgrades, even though
+ these should normally be customised by copying stuff from
+ /usr/share/gforge/etc/httpd.d/ to /etc/gforge/httpd.d/ and
+ changing them there, instead of patching that file directly
+
+ -- Thorsten Glaser <tg at mirbsd.de> Mon, 26 Oct 2009 15:27:09 +0100
+
gforge (4.8-3evolvis2) unstable; urgency=low
* Temporarily remove the non-working themes, to test
Modified: trunk/gforge_base/gforge-4.8/debian/gforge-web-apache2.postinst.dsfh-in
===================================================================
--- trunk/gforge_base/gforge-4.8/debian/gforge-web-apache2.postinst.dsfh-in 2009-10-23 12:29:32 UTC (rev 179)
+++ trunk/gforge_base/gforge-4.8/debian/gforge-web-apache2.postinst.dsfh-in 2009-10-26 14:30:56 UTC (rev 180)
@@ -31,6 +31,7 @@
case "$1" in
configure)
+ mv -f /etc/gforge/httpd.conf /etc/gforge/httpd.conf.dsfh-old
if [ -c /dev/urandom ]; then # ...using /dev/urandom when possible
sys_session_key=$(dd if=/dev/urandom count=256 bs=1 2> /dev/null | md5sum | cut -b1-32)
else # ...or something else if need be.
More information about the evolvis-commits
mailing list