[DRE-commits] [redmine] 04/15: debian/postinst: fix missing quotes around $fHasOldSessionName

Antonio Terceiro terceiro at moszumanska.debian.org
Sat May 2 21:00:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to branch master
in repository redmine.

commit 09f487df4e5b219705ce5a780d0138a07f5845a6
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Wed Apr 8 17:46:08 2015 +0200

    debian/postinst: fix missing quotes around $fHasOldSessionName
---
 debian/changelog | 1 +
 debian/postinst  | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d9da92f..237d4aa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -21,6 +21,7 @@ redmine (3.0~20140825-6) UNRELEASED; urgency=medium
     - debian/postrm: remove the aforementioned files
   * debian/postinst: restrict usage of $2 as a version number to actual
     upgrades.
+  * debian/postinst: fix missing quotes around $fHasOldSessionName
 
  -- Antonio Terceiro <terceiro at debian.org>  Wed, 08 Apr 2015 12:06:32 +0200
 
diff --git a/debian/postinst b/debian/postinst
index aa843c0..b9a4f0f 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -273,7 +273,7 @@ for lInstance in $gInstances; do
 				echo "A new secret session key has been generated in ${fRailsEtc}/session.yml"
 			else
 				fHasOldSessionName=$(fgrep -c session_key "${fRailsEtc}/session.yml" || true)
-				if [ $fHasOldSessionName -gt 0 ]; then
+				if [ "$fHasOldSessionName" -gt 0 ]; then
 					# in-place, because ucf might be configured to keep the old version without asking
 					sed -i -r -e 's/session_key/key/g' ${fRailsEtc}/session.yml		
 				fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/redmine.git



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