[DRE-commits] r4216 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Mon Oct 5 00:07:02 UTC 2009
Author: kapouer-guest
Date: 2009-10-05 00:07:02 +0000 (Mon, 05 Oct 2009)
New Revision: 4216
Modified:
trunk/redmine/debian/postinst
Log:
postinst "upgrade" never happens, remove it.
Modified: trunk/redmine/debian/postinst
===================================================================
--- trunk/redmine/debian/postinst 2009-10-05 00:06:48 UTC (rev 4215)
+++ trunk/redmine/debian/postinst 2009-10-05 00:07:02 UTC (rev 4216)
@@ -186,22 +186,6 @@
abort-upgrade|abort-remove|abort-deconfigure)
;;
-
- upgrade)
- if [ $withdb -eq 1 ]; then
- savedir="`pwd`"
- cd /usr/share/redmine
- # store sessions in database, more secure and fixes #549453
- rake -s db:sessions:create RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" VERBOSE=$RAKE_VERBOSE || true
- rake -s db:migrate RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" VERBOSE=$RAKE_VERBOSE || true
- rake -s tmp:cache:clear RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" || true
- rake -s tmp:sessions:clear RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" || true
- # because rake task is executed as root, make sure owner is www-data
- chown -f www-data:www-data ${fRailsLog}/production.log
- cd $savedir
- echo "Redmine instance \"${lInstance}\" upgraded. Check in admin panel Roles & permissions for new features, if any."
- fi
- ;;
*)
echo "postinst called with unknown argument \`$1'" >&2
More information about the Pkg-ruby-extras-commits
mailing list