[DRE-commits] r4386 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Tue Nov 24 00:07:42 UTC 2009
Author: kapouer-guest
Date: 2009-11-24 00:07:33 +0000 (Tue, 24 Nov 2009)
New Revision: 4386
Modified:
trunk/redmine/debian/postinst
Log:
Check if reinstall has been seen to take it into account.
Modified: trunk/redmine/debian/postinst
===================================================================
--- trunk/redmine/debian/postinst 2009-11-24 00:06:37 UTC (rev 4385)
+++ trunk/redmine/debian/postinst 2009-11-24 00:07:33 UTC (rev 4386)
@@ -115,7 +115,10 @@
db_get redmine/instances/$lInstance/dbconfig-reinstall || fCode=$?
if [ $fCode -eq 0 ]; then
if [ "$RET" = "false" ]; then
- lInstall=0
+ db_fget redmine/instances/$lInstance/dbconfig-reinstall seen || true
+ if [ "$RET" = "true" ]; then
+ lInstall=0
+ fi
fi
fi
fi
@@ -209,6 +212,8 @@
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
+ elif [ $lInstall -eq 0 ]; then
+ echo "Redmine instance \"${lInstance}\" database is not reinstalled."
else
echo "Redmine instance \"${lInstance}\" database must be configured manually."
fi
More information about the Pkg-ruby-extras-commits
mailing list