[DRE-commits] [SCM] redmine.git branch, master-experimental, updated. debian/1.4.4+dfsg1-1-64-g291dbc7

Ondřej Surý ondrej at sury.org
Sun Dec 16 20:37:09 UTC 2012


The following commit has been merged in the master-experimental branch:
commit 7c851e16db3da28c5d94882ef463e6383fcf51a5
Author: Ondřej Surý <ondrej at sury.org>
Date:   Wed Dec 12 15:13:13 2012 +0100

    Regenerate session.yml on upgrades

diff --git a/debian/NEWS b/debian/NEWS
index 58f81a6..83e4845 100644
--- a/debian/NEWS
+++ b/debian/NEWS
@@ -1,3 +1,13 @@
+redmine (2.1.4+dfsg2-2) experimental; urgency=low
+
+  * An old secret session keys has to be replaced due incompatible changes
+    in the ruby classes, which would make redmine inaccessible for all
+    users with the old sessions cached in browser cookies.
+    
+    The old session keys can be found in /etc/redmine/default/session.yml.dpkg-old
+
+ -- Ondřej Surý <ondrej at debian.org>  Wed, 12 Dec 2012 15:12:39 +0100
+
 redmine (2.1.4+dfsg2-1) experimental; urgency=low
 
   * This is work in progress.  It might and probably will break your
diff --git a/debian/postinst b/debian/postinst
index 0a25ec6..6d5b827 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -231,6 +231,9 @@ for lInstance in $gInstances; do
 				mv "$fRailsEtc/email.yml" "$fRailsEtc/configuration.yml"
 			fi
 			#fi
+			if dpkg --compare-versions "$2" lt "2.1.4+dfsg2-2~" && [ -f "${fRailsEtc}/session.yml" ]; then
+			    mv "${fRailsEtc}/session.yml" "${fRailsEtc}/session.yml.dpkg-old";
+			fi
 			# add secret key, set permissions, manage file with ucf
 			if [ ! -f "${fRailsEtc}/session.yml" ]; then
 				rake -s generate_secret_token YML_SESSION_FILENAME="session.yml.new" RAILS_ENV=$fRailsEnv X_DEBIAN_SITEID="${lInstance}" || true

-- 
redmine.git



More information about the Pkg-ruby-extras-commits mailing list