[DRE-commits] r4232 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Thu Oct 8 22:38:17 UTC 2009
Author: kapouer-guest
Date: 2009-10-08 22:38:17 +0000 (Thu, 08 Oct 2009)
New Revision: 4232
Modified:
trunk/redmine/debian/postinst
Log:
Plugins that use database need migration in case a new instance is defined.
Modified: trunk/redmine/debian/postinst
===================================================================
--- trunk/redmine/debian/postinst 2009-10-08 19:27:52 UTC (rev 4231)
+++ trunk/redmine/debian/postinst 2009-10-08 22:38:17 UTC (rev 4232)
@@ -184,6 +184,8 @@
# because rake task is executed as root here, and this file is used later by web server, make sure owner is www-data
touch ${fRailsLog}/production.log
chown -f www-data:www-data ${fRailsLog}/production.log
+ # handle plugins migration
+ rake -s db:migrate_plugins RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" VERBOSE=$RAKE_VERBOSE || true
else
echo "Redmine instance \"${lInstance}\" database must be configured manually."
fi
More information about the Pkg-ruby-extras-commits
mailing list