[DRE-commits] r4385 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Tue Nov 24 00:06:44 UTC 2009
Author: kapouer-guest
Date: 2009-11-24 00:06:37 +0000 (Tue, 24 Nov 2009)
New Revision: 4385
Modified:
trunk/redmine/debian/postinst
Log:
Don't configure db if dbconfig reinstall answers false.
Modified: trunk/redmine/debian/postinst
===================================================================
--- trunk/redmine/debian/postinst 2009-11-24 00:05:37 UTC (rev 4384)
+++ trunk/redmine/debian/postinst 2009-11-24 00:06:37 UTC (rev 4385)
@@ -107,8 +107,20 @@
fRailsCache=/var/cache/redmine/$lInstance
withdb=0
+ lInstall=0
db_get redmine/instances/$lInstance/dbconfig-install || true
if [ "$RET" = "true" ]; then
+ lInstall=1
+ fCode=0
+ db_get redmine/instances/$lInstance/dbconfig-reinstall || fCode=$?
+ if [ $fCode -eq 0 ]; then
+ if [ "$RET" = "false" ]; then
+ lInstall=0
+ fi
+ fi
+ fi
+
+ if [ $lInstall -eq 1 ]; then
# dbconfig needs this folder to ouput database.yml
mkdir -p $fRailsEtc
chown -f www-data:www-data $fRailsEtc
More information about the Pkg-ruby-extras-commits
mailing list