[DRE-commits] [diaspora-installer] 03/04: remove bin symlink to /usr/bin

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Thu Aug 27 07:20:51 UTC 2015


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

praveen pushed a commit to branch master
in repository diaspora-installer.

commit b15c602c964d65255dbcbf4afea0fd98119c5cc6
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Aug 27 11:45:18 2015 +0530

    remove bin symlink to /usr/bin
---
 debian/changelog | 1 +
 debian/postinst  | 7 +++++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 66b1aa0..c31c6da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ diaspora-installer (0.5.2.0+debian1) UNRELEASED; urgency=medium
   * Set minimum version of redis-server to 2:3.0
   * Update to 0.5.2.0 version of diaspora
   * Force gem installed bundler (symlink bin/bundle to /usr/local/bin/bundle)
+  * Remove bin symlink to /usr/bin
 
  -- Pirate Praveen <praveen at debian.org>  Fri, 15 May 2015 10:17:09 +0530
 
diff --git a/debian/postinst b/debian/postinst
index 93c14d0..3a46100 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -30,6 +30,13 @@ case "$1" in
     configure)
         # Source varibales
 	. /etc/diaspora/diaspora-common.conf
+	
+	# Fix bin symlink set by earlier versions
+	if test -L ${diaspora_home}/bin
+	then
+	    rm -rf ${diaspora_home}/bin
+	fi
+
 	cd ${diaspora_home}
         if ! test -z $2
         then

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



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