[DRE-commits] [diaspora-installer] 03/04: install eye via rubygems

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Aug 28 07:42:43 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 b08eefaf486ae2a56d2edd5ad8d725902e6b19e9
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Fri Aug 28 13:08:01 2015 +0530

    install eye via rubygems
---
 debian/changelog |  3 ++-
 debian/postinst  | 16 ++++++++++------
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index db24eab..5d591c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 diaspora-installer (0.5.2.0+debian3) UNRELEASED; urgency=medium
 
-  * Relax redis-server minimum version to 2:2.8 
+  * Relax redis-server minimum version to 2:2.8
+  * Install eye using rubygem for init script
 
  -- Pirate Praveen <praveen at debian.org>  Fri, 28 Aug 2015 10:38:37 +0530
 
diff --git a/debian/postinst b/debian/postinst
index 0c62a56..69a4051 100755
--- a/debian/postinst
+++ b/debian/postinst
@@ -38,6 +38,12 @@ migrate() {
         invoke-rc.d diaspora start
 }
 
+install_gems() {
+# Needs latest bundler
+# Needs eye for init script
+        gem install bundler eye
+}
+
 case "$1" in
     configure)
         # Source varibales
@@ -58,8 +64,8 @@ case "$1" in
                 . /usr/lib/diaspora-common/scripts/diaspora-download.sh
 
 	        cd ${diaspora_home}
-                # Update bundler
-                gem install bundler
+
+                install_gems
 
                 su diaspora -s /bin/sh -c 'bundle install'
                 su diaspora -s /bin/sh -c "sed -i s/Rails.application.config.secret_token/Diaspora::Application.config.secret_key_base/ ${diaspora_home}/config/initializers/secret_token.rb"
@@ -73,8 +79,7 @@ case "$1" in
 	            cd ${diaspora_home}
                     # source diaspora variables	
                     . ${diaspora_conf}
-                    # Update bundler
-                    gem install bundler
+		    install_gems
 
                     su diaspora -s /bin/sh -c 'bundle install --without development test'
 		    migrate
@@ -90,8 +95,7 @@ case "$1" in
 	    . /usr/lib/diaspora-common/scripts/set-env-diaspora.sh
 	    echo RAILS_ENV=$RAILS_ENV DB=$DB ENVIRONMENT_URL=$ENVIRONMENT_URL
 
-            # Update bundler
-             gem install bundler
+            install_gems
 
 	    echo "Installing gems with rubygems ..."
 	    sudo -u diaspora -E -H bundle install --path vendor/bundle --without development test

-- 
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