[DRE-commits] [diaspora] 159/257: update postinst to conditionally install gems

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Sun Apr 12 14:17:20 UTC 2015


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

praveen pushed a commit to branch master
in repository diaspora.

commit 417153f3f1e6d8414a415bfd9560e36460ef399e
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Thu Nov 27 15:24:30 2014 +0530

    update postinst to conditionally install gems
---
 debian/postinst | 24 ++++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/debian/postinst b/debian/postinst
index b5a5d19..de36ffc 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -43,10 +43,26 @@ case "$1" in
 	cd /usr/share/diaspora
 	echo "Installing gems with rubygems (their debian packages have bugs)..."
 # These gems need more work before they can be apt-get
-	gem install handlebars_assets rails-timeago 
-	gem install -v=0.62.0 foreman 
-	gem install -v=3.4.1 devise
-	gem install --source https://rails-assets.org rails-assets-jquery-idletimer
+	if gem list handlebars_asstes | grep handlebars_assets
+		then gem install handlebars_assets
+	fi
+	
+	if gem list rails-timeago | grep rails-timeago
+		then gem install rails-timeago
+	fi
+	
+	if gem list foreman | grep foreman
+		then gem install -v=0.62.0 foreman
+	fi
+
+	if gem list devise | grep devise
+		then gem install -v=3.4.1 devise
+	fi
+	
+	if gem list rails-assets-jquery-idletimer | grep rails-assets-jquery-idletimer
+		then gem install --source https://rails-assets.org rails-assets-jquery-idletimer
+	fi
+
 	echo "Verifying we have all required libraries..."
 	sudo -u diaspora bundle install --local
 	echo "Initializing database..."

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



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